From f5067ed829ae5743499916b941b2310c50681f29 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 10 Aug 2026 00:55:28 +0200 Subject: feat: add move tab keybind actions (#2561) * feat: add move tab keybind actions Add optional keys.move_tab_previous/move_tab_next actions that reorder the active tab one position, wrapping at either end. Reuses the existing tab.move runtime path that mouse drag reordering already drives. * fix: exit navigate mode on single-tab move attempts --- src/config/keybinds.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config/keybinds.rs') diff --git a/src/config/keybinds.rs b/src/config/keybinds.rs index de732121..79dc87e3 100644 --- a/src/config/keybinds.rs +++ b/src/config/keybinds.rs @@ -328,6 +328,8 @@ pub struct Keybinds { pub rename_tab: ActionKeybinds, pub previous_tab: ActionKeybinds, pub next_tab: ActionKeybinds, + pub move_tab_previous: ActionKeybinds, + pub move_tab_next: ActionKeybinds, pub switch_tab: Vec, pub switch_workspace: Vec, pub close_tab: ActionKeybinds, @@ -494,6 +496,8 @@ impl Config { rename_tab: empty_action!(), previous_tab: empty_action!(), next_tab: empty_action!(), + move_tab_previous: empty_action!(), + move_tab_next: empty_action!(), switch_tab: Vec::new(), switch_workspace: Vec::new(), close_tab: empty_action!(), @@ -629,6 +633,8 @@ impl Config { apply_action!(keybinds.rename_tab, rename_tab, source); apply_action!(keybinds.previous_tab, previous_tab, source); apply_action!(keybinds.next_tab, next_tab, source); + apply_action!(keybinds.move_tab_previous, move_tab_previous, source); + apply_action!(keybinds.move_tab_next, move_tab_next, source); apply_indexed!( keybinds.switch_tab, switch_tab, -- cgit v1.2.3