From 4e31084495120674a0cf403a27d3d91c5efb34fe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 9 Aug 2026 18:10:52 +0200 Subject: feat: add direct pane resize keybindings (#2558) --- src/config/keybinds.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/config/keybinds.rs') diff --git a/src/config/keybinds.rs b/src/config/keybinds.rs index 199076f0..de732121 100644 --- a/src/config/keybinds.rs +++ b/src/config/keybinds.rs @@ -350,6 +350,10 @@ pub struct Keybinds { pub close_pane: ActionKeybinds, pub zoom: ActionKeybinds, pub resize_mode: ActionKeybinds, + pub resize_pane_left: ActionKeybinds, + pub resize_pane_down: ActionKeybinds, + pub resize_pane_up: ActionKeybinds, + pub resize_pane_right: ActionKeybinds, pub toggle_sidebar: ActionKeybinds, pub custom_commands: Vec, } @@ -512,6 +516,10 @@ impl Config { close_pane: empty_action!(), zoom: empty_action!(), resize_mode: empty_action!(), + resize_pane_left: empty_action!(), + resize_pane_down: empty_action!(), + resize_pane_up: empty_action!(), + resize_pane_right: empty_action!(), toggle_sidebar: empty_action!(), custom_commands: Vec::new(), }; @@ -653,6 +661,10 @@ impl Config { apply_action!(keybinds.close_pane, close_pane, source); apply_action!(keybinds.zoom, zoom, source); apply_action!(keybinds.resize_mode, resize_mode, source); + apply_action!(keybinds.resize_pane_left, resize_pane_left, source); + apply_action!(keybinds.resize_pane_down, resize_pane_down, source); + apply_action!(keybinds.resize_pane_up, resize_pane_up, source); + apply_action!(keybinds.resize_pane_right, resize_pane_right, source); apply_action!(keybinds.toggle_sidebar, toggle_sidebar, source); if source == field_source!(indexed) { -- cgit v1.2.3