[Feature]: Keyboard shortcuts to navigate between terminals and splits #6770
janssonoskar
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/web
Problem or use case
There is no keyboard shortcut to move between terminals, or between splits within a terminal. You have to click.
Proposed solution
Add four keybinding commands, all gated on
terminalFocus:terminal.next/terminal.previous: cycle terminals with wrap. Defaultctrl+tab/ctrl+shift+tab.terminal.focusLeft/terminal.focusRight: focus the terminal to the left/right within the current split, no wrap. Defaultmod+alt+arrowleft/mod+alt+arrowright(cmd+option+arrowon macOS,ctrl+alt+arrowelsewhere).Why this matters
The drawer already supports creating (
cmd+n), splitting (cmd+d), and closing (cmd+w) terminals from the keyboard. Moving between them requires the mouse.Smallest useful scope
Just
terminal.next/terminal.previous. The split-focus pair could ship separately.Examples or references
ctrl+tab/ctrl+shift+tabfor tab cycling,cmd+option+arrowfor split focus on macOS,ctrl+alt+arrowelsewhere.ctrl+tabandcmd+option+arroware browser-reserved, so these defaults target the desktop app. Not sure on the best way forward for the web variant, currently the user would have to edit their keybindings manually. Would appreciate some feedback here.Cross-platform note: tested on macOS only.
Contribution
All reactions