From 8dfea2d69ea77d3352023cc108e9c2fef336e1d5 Mon Sep 17 00:00:00 2001 From: mattia Date: Fri, 16 Aug 2024 19:45:25 +0200 Subject: [PATCH] Add and change some other key bindings I like the idea of using CTRL+C as a default shortcut for scrolling to the end of the file and exiting the current command, so I'm adding it to all the modes. --- config.kdl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config.kdl b/config.kdl index 068cdc1..05f3194 100644 --- a/config.kdl +++ b/config.kdl @@ -8,7 +8,8 @@ keybinds clear-defaults=true { bind "Alt g" { SwitchToMode "Normal"; } } resize { - bind "Ctrl n" { SwitchToMode "Normal"; } + bind "Alt M" { SwitchToMode "Normal"; } + bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; } bind "Left" { Resize "Increase Left"; } bind "Down" { Resize "Increase Down"; } bind "Up" { Resize "Increase Up"; } @@ -21,7 +22,8 @@ keybinds clear-defaults=true { bind "-" { Resize "Decrease"; } } pane { - bind "Ctrl p" { SwitchToMode "Normal"; } + bind "Alt p" { SwitchToMode "Normal"; } + bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; } bind "Left" { MoveFocus "Left"; } bind "Right" { MoveFocus "Right"; } bind "Down" { MoveFocus "Down"; } @@ -38,7 +40,8 @@ keybinds clear-defaults=true { bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;} } move { - bind "Ctrl h" { SwitchToMode "Normal"; } + bind "Alt m" { SwitchToMode "Normal"; } + bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; } bind "n" "Tab" { MovePane; } bind "p" { MovePaneBackwards; } bind "Left" { MovePane "Left"; } @@ -113,7 +116,7 @@ keybinds clear-defaults=true { bind "Ctrl c" { SwitchToMode "Normal"; } bind "Ctrl f" { SwitchToMode "Scroll"; } bind "d" { Detach; } - bind "w" { + bind "s" { LaunchOrFocusPlugin "session-manager" { floating true move_to_focused_tab true