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. Default ctrl+tab / ctrl+shift+tab.
terminal.focusLeft / terminal.focusRight: focus the terminal to the left/right within the current split, no wrap. Default mod+alt+arrowleft / mod+alt+arrowright (cmd+option+arrow on macOS, ctrl+alt+arrow elsewhere).
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 and cmd+option+arrow are 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
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