zellij: "Ctrl b" only Ctrl command in normal mode

This commit is contained in:
Łukasz Pankowski 2024-02-12 21:37:27 +01:00
parent b18031ffc4
commit 81a729d005

View File

@ -1,11 +1,10 @@
// 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; }
}
locked {
bind "Ctrl g" { SwitchToMode "Normal"; }
}
resize {
bind "Ctrl n" { SwitchToMode "Normal"; }
@ -145,9 +144,8 @@ keybinds {
bind "x" { CloseFocus; SwitchToMode "Normal"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
bind "Ctrl q" { Quit; }
bind "Alt n" { NewPane; }
bind "Alt N" { NewTab; }
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
@ -158,29 +156,31 @@ keybinds {
bind "Alt ]" { NextSwapLayout; }
bind "Alt H" { GoToPreviousTab; }
bind "Alt L" { GoToNextTab; }
bind "Alt K" { ToggleFloatingPanes; }
}
shared_except "normal" "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
bind "Enter" "Esc" { SwitchToMode "Normal"; }
}
shared_except "pane" "locked" {
shared_except "pane" "locked" "normal" {
bind "Ctrl p" { SwitchToMode "Pane"; }
}
shared_except "resize" "locked" {
shared_except "resize" "locked" "normal" {
bind "Ctrl n" { SwitchToMode "Resize"; }
}
shared_except "scroll" "locked" {
shared_except "scroll" "locked" "normal" {
bind "Ctrl s" { SwitchToMode "Scroll"; }
}
shared_except "session" "locked" {
shared_except "session" "locked" "normal" {
bind "Ctrl o" { SwitchToMode "Session"; }
}
shared_except "tab" "locked" {
shared_except "tab" "locked" "normal" {
bind "Ctrl t" { SwitchToMode "Tab"; }
}
shared_except "move" "locked" {
shared_except "move" "locked" "normal" {
bind "Ctrl h" { SwitchToMode "Move"; }
}
shared_except "tmux" "locked" {
shared_except "tmux" {
bind "Ctrl b" { SwitchToMode "Tmux"; }
}
}