mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-30 14:21:51 +02:00
feat: zellij - remove tmux keybindings to avoid conflicts with server's tmux
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
||||
keybinds {
|
||||
keybinds clear-defaults=true {
|
||||
normal {
|
||||
// uncomment this and adjust key if using copy_on_select=false
|
||||
// bind "Alt c" { Copy; }
|
||||
@@ -111,29 +111,29 @@ keybinds {
|
||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||
bind "d" { Detach; }
|
||||
}
|
||||
tmux {
|
||||
bind "[" { SwitchToMode "Scroll"; }
|
||||
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
||||
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||
bind "c" { NewTab; SwitchToMode "Normal"; }
|
||||
bind "," { SwitchToMode "RenameTab"; }
|
||||
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
||||
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
||||
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||
bind "o" { FocusNextPane; }
|
||||
bind "d" { Detach; }
|
||||
bind "Space" { NextSwapLayout; }
|
||||
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||
}
|
||||
// tmux {
|
||||
// bind "[" { SwitchToMode "Scroll"; }
|
||||
// bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
||||
// bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||
// bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||
// bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||
// bind "c" { NewTab; SwitchToMode "Normal"; }
|
||||
// bind "," { SwitchToMode "RenameTab"; }
|
||||
// bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
||||
// bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
||||
// bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||
// bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||
// bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||
// bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||
// bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||
// bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||
// bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||
// bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||
// bind "o" { FocusNextPane; }
|
||||
// bind "d" { Detach; }
|
||||
// bind "Space" { NextSwapLayout; }
|
||||
// bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||
// }
|
||||
shared_except "locked" {
|
||||
bind "Ctrl g" { SwitchToMode "Locked"; }
|
||||
bind "Ctrl q" { Quit; }
|
||||
@@ -168,9 +168,9 @@ keybinds {
|
||||
shared_except "move" "locked" {
|
||||
bind "Ctrl h" { SwitchToMode "Move"; }
|
||||
}
|
||||
shared_except "tmux" "locked" {
|
||||
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
||||
}
|
||||
// shared_except "tmux" "locked" {
|
||||
// bind "Ctrl b" { SwitchToMode "Tmux"; }
|
||||
// }
|
||||
}
|
||||
|
||||
plugins {
|
||||
|
||||
Reference in New Issue
Block a user