changed all zellij keybinds to start with alt to reduce keybind conflicts.
This commit is contained in:
parent
8178a6402f
commit
442aca26a1
|
@ -1,14 +1,14 @@
|
||||||
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
// 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 {
|
normal {
|
||||||
// uncomment this and adjust key if using copy_on_select=false
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
// bind "Alt c" { Copy; }
|
// bind "Alt c" { Copy; }
|
||||||
}
|
}
|
||||||
locked {
|
locked {
|
||||||
bind "Ctrl g" { SwitchToMode "Normal"; }
|
bind "Alt g" { SwitchToMode "Normal"; }
|
||||||
}
|
}
|
||||||
resize {
|
resize {
|
||||||
bind "Ctrl n" { SwitchToMode "Normal"; }
|
bind "Alt r" { SwitchToMode "Normal"; }
|
||||||
bind "h" "Left" { Resize "Increase Left"; }
|
bind "h" "Left" { Resize "Increase Left"; }
|
||||||
bind "j" "Down" { Resize "Increase Down"; }
|
bind "j" "Down" { Resize "Increase Down"; }
|
||||||
bind "k" "Up" { Resize "Increase Up"; }
|
bind "k" "Up" { Resize "Increase Up"; }
|
||||||
|
@ -21,7 +21,7 @@ keybinds {
|
||||||
bind "-" { Resize "Decrease"; }
|
bind "-" { Resize "Decrease"; }
|
||||||
}
|
}
|
||||||
pane {
|
pane {
|
||||||
bind "Ctrl p" { SwitchToMode "Normal"; }
|
bind "Alt p" { SwitchToMode "Normal"; }
|
||||||
bind "h" "Left" { MoveFocus "Left"; }
|
bind "h" "Left" { MoveFocus "Left"; }
|
||||||
bind "l" "Right" { MoveFocus "Right"; }
|
bind "l" "Right" { MoveFocus "Right"; }
|
||||||
bind "j" "Down" { MoveFocus "Down"; }
|
bind "j" "Down" { MoveFocus "Down"; }
|
||||||
|
@ -38,7 +38,7 @@ keybinds {
|
||||||
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
||||||
}
|
}
|
||||||
move {
|
move {
|
||||||
bind "Ctrl h" { SwitchToMode "Normal"; }
|
bind "Alt m" { SwitchToMode "Normal"; }
|
||||||
bind "n" "Tab" { MovePane; }
|
bind "n" "Tab" { MovePane; }
|
||||||
bind "p" { MovePaneBackwards; }
|
bind "p" { MovePaneBackwards; }
|
||||||
bind "h" "Left" { MovePane "Left"; }
|
bind "h" "Left" { MovePane "Left"; }
|
||||||
|
@ -47,7 +47,7 @@ keybinds {
|
||||||
bind "l" "Right" { MovePane "Right"; }
|
bind "l" "Right" { MovePane "Right"; }
|
||||||
}
|
}
|
||||||
tab {
|
tab {
|
||||||
bind "Ctrl t" { SwitchToMode "Normal"; }
|
bind "Alt t" { SwitchToMode "Normal"; }
|
||||||
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
||||||
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
|
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
|
||||||
bind "l" "Right" "Down" "j" { GoToNextTab; }
|
bind "l" "Right" "Down" "j" { GoToNextTab; }
|
||||||
|
@ -69,7 +69,7 @@ keybinds {
|
||||||
bind "Tab" { ToggleTab; }
|
bind "Tab" { ToggleTab; }
|
||||||
}
|
}
|
||||||
scroll {
|
scroll {
|
||||||
bind "Ctrl s" { SwitchToMode "Normal"; }
|
bind "Alt s" { SwitchToMode "Normal"; }
|
||||||
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
||||||
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
||||||
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
@ -83,7 +83,7 @@ keybinds {
|
||||||
// bind "Alt c" { Copy; }
|
// bind "Alt c" { Copy; }
|
||||||
}
|
}
|
||||||
search {
|
search {
|
||||||
bind "Ctrl s" { SwitchToMode "Normal"; }
|
bind "Alt s" { SwitchToMode "Normal"; }
|
||||||
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
bind "j" "Down" { ScrollDown; }
|
bind "j" "Down" { ScrollDown; }
|
||||||
bind "k" "Up" { ScrollUp; }
|
bind "k" "Up" { ScrollUp; }
|
||||||
|
@ -110,8 +110,8 @@ keybinds {
|
||||||
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
||||||
}
|
}
|
||||||
session {
|
session {
|
||||||
bind "Ctrl o" { SwitchToMode "Normal"; }
|
bind "Alt o" { SwitchToMode "Normal"; }
|
||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
bind "Alt s" { SwitchToMode "Scroll"; }
|
||||||
bind "d" { Detach; }
|
bind "d" { Detach; }
|
||||||
bind "w" {
|
bind "w" {
|
||||||
LaunchOrFocusPlugin "zellij:session-manager" {
|
LaunchOrFocusPlugin "zellij:session-manager" {
|
||||||
|
@ -123,7 +123,7 @@ keybinds {
|
||||||
}
|
}
|
||||||
tmux {
|
tmux {
|
||||||
bind "[" { SwitchToMode "Scroll"; }
|
bind "[" { SwitchToMode "Scroll"; }
|
||||||
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
bind "Alt a" { Write 2; SwitchToMode "Normal"; }
|
||||||
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
|
@ -145,8 +145,8 @@ keybinds {
|
||||||
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
}
|
}
|
||||||
shared_except "locked" {
|
shared_except "locked" {
|
||||||
bind "Ctrl g" { SwitchToMode "Locked"; }
|
bind "Alt g" { SwitchToMode "Locked"; }
|
||||||
bind "Ctrl q" { Quit; }
|
bind "Alt q" { Quit; }
|
||||||
bind "Alt n" { NewPane; }
|
bind "Alt n" { NewPane; }
|
||||||
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
||||||
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
||||||
|
@ -161,25 +161,25 @@ keybinds {
|
||||||
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
||||||
}
|
}
|
||||||
shared_except "pane" "locked" {
|
shared_except "pane" "locked" {
|
||||||
bind "Ctrl p" { SwitchToMode "Pane"; }
|
bind "Alt p" { SwitchToMode "Pane"; }
|
||||||
}
|
}
|
||||||
shared_except "resize" "locked" {
|
shared_except "resize" "locked" {
|
||||||
bind "Ctrl n" { SwitchToMode "Resize"; }
|
bind "Alt r" { SwitchToMode "Resize"; }
|
||||||
}
|
}
|
||||||
shared_except "scroll" "locked" {
|
shared_except "scroll" "locked" {
|
||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
bind "Alt s" { SwitchToMode "Scroll"; }
|
||||||
}
|
}
|
||||||
shared_except "session" "locked" {
|
shared_except "session" "locked" {
|
||||||
bind "Ctrl o" { SwitchToMode "Session"; }
|
bind "Alt o" { SwitchToMode "Session"; }
|
||||||
}
|
}
|
||||||
shared_except "tab" "locked" {
|
shared_except "tab" "locked" {
|
||||||
bind "Ctrl t" { SwitchToMode "Tab"; }
|
bind "Alt t" { SwitchToMode "Tab"; }
|
||||||
}
|
}
|
||||||
shared_except "move" "locked" {
|
shared_except "move" "locked" {
|
||||||
bind "Ctrl h" { SwitchToMode "Move"; }
|
bind "Alt m" { SwitchToMode "Move"; }
|
||||||
}
|
}
|
||||||
shared_except "tmux" "locked" {
|
shared_except "tmux" "locked" {
|
||||||
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
bind "Alt b" { SwitchToMode "Tmux"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue