From 81a729d00528fd4b94c7b1afd0125eb0074f1bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Mon, 12 Feb 2024 21:37:27 +0100 Subject: [PATCH] zellij: "Ctrl b" only Ctrl command in normal mode --- zellij/.config/zellij/config.kdl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/zellij/.config/zellij/config.kdl b/zellij/.config/zellij/config.kdl index 1683369..edd5cf8 100644 --- a/zellij/.config/zellij/config.kdl +++ b/zellij/.config/zellij/config.kdl @@ -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"; } } }