Skip to content

Commit 1b27ea3

Browse files
committed
feat(zellij): improve keybindings
Now that I have a more sensible normal/locked mode, use p and t for pane and tab, rather than an unnecessary extra ctrl.
1 parent 6be295b commit 1b27ea3

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

packages/zellij/config.kdl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ keybinds clear-defaults=true {
2323
bind "l" { MoveFocus "right"; }
2424
bind "n" { NewPane; SwitchToMode "normal"; }
2525
bind "p" { SwitchFocus; }
26-
bind "Ctrl p" { SwitchToMode "normal"; }
2726
bind "v" { NewPane "right"; SwitchToMode "normal"; }
2827
bind "s" { NewPane "stacked"; SwitchToMode "normal"; }
2928
bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; }
@@ -53,7 +52,6 @@ keybinds clear-defaults=true {
5352
bind "n" { NewTab; SwitchToMode "normal"; }
5453
bind "r" { SwitchToMode "renametab"; TabNameInput 0; }
5554
bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; }
56-
bind "Ctrl t" { SwitchToMode "normal"; }
5755
bind "x" { CloseTab; SwitchToMode "normal"; }
5856
bind "tab" { ToggleTab; }
5957
}
@@ -179,13 +177,13 @@ keybinds clear-defaults=true {
179177
bind "Ctrl b" { SwitchToMode "tmux"; }
180178
}
181179
shared_except "locked" "scroll" "search" {
182-
bind "Ctrl s" { SwitchToMode "scroll"; }
180+
bind "s" { SwitchToMode "scroll"; }
183181
}
184182
shared_except "locked" "tab" {
185-
bind "Ctrl t" { SwitchToMode "tab"; }
183+
bind "t" { SwitchToMode "tab"; }
186184
}
187185
shared_except "locked" "pane" {
188-
bind "Ctrl p" { SwitchToMode "pane"; }
186+
bind "p" { SwitchToMode "pane"; }
189187
}
190188
shared_except "locked" "resize" {
191189
bind "Alt r" { SwitchToMode "resize"; }
@@ -215,7 +213,6 @@ keybinds clear-defaults=true {
215213
bind "j" { ScrollDown; }
216214
bind "k" { ScrollUp; }
217215
bind "l" { PageScrollDown; }
218-
bind "Ctrl s" { SwitchToMode "normal"; }
219216
bind "u" { HalfPageScrollUp; }
220217
bind "Ctrl u" { HalfPageScrollUp; }
221218
bind "g" { ScrollToTop; }

0 commit comments

Comments
 (0)