aboutsummaryrefslogtreecommitdiff
path: root/src/config/keybinds.rs
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@hey.com>2026-08-10 00:55:28 +0200
committerGitHub <noreply@github.com>2026-08-10 01:55:28 +0300
commitf5067ed829ae5743499916b941b2310c50681f29 (patch)
tree1695386cd3256ea9be1916e4385d1bbbe90d8748 /src/config/keybinds.rs
parente48d83067a5a9b05dfd0a82761068866ab2d294d (diff)
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
Diffstat (limited to 'src/config/keybinds.rs')
-rw-r--r--src/config/keybinds.rs6
1 files changed, 6 insertions, 0 deletions
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<IndexedKeybind>,
pub switch_workspace: Vec<IndexedKeybind>,
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,