rightPanel.nextTab and rightPanel.previousTab, so Ctrl+Tab can cycle right-panel tabs #7470
andybergon
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.
Problem or use case
Ctrl+Tabdoes nothing in the right panel, and no other key switches right-panel tabseither. The mouse is the only way to move between Diff, Files, a browser tab, and a
terminal.
This is not the chord-capture problem from #6966. The keybindings list has no next-tab or
previous-tab command for the right panel, so there is nothing to bind in the first place.
#6817 is the umbrella request for this class of missing command.
Proposed solution
Bindable "next right-panel tab" and "previous right-panel tab" commands, cycling the
current thread's tabs and wrapping at each end.
They would not need a default binding, the same as
rightPanel.toggleMaximized, so anyonewho wants
ctrl+tabandctrl+shift+tabcan set them in Settings > Keybindings. A defaultwould need a right-panel focus condition, and the
whenconditions available today areterminalFocus,terminalOpen,previewFocus,previewOpen, andmodelPickerOpen.Why this matters
The right panel is where the work is actually read. #6791 asked for
Cmd+Wto close theactive surface and #6824 asked for a command to open a terminal there, so tab navigation is
the missing piece of the same set.
Smallest useful scope
Next and previous only, unbound by default. Numbered jumps can follow if there is demand.
Alternatives considered
diff.toggleandpreview.togglealready reach two right-panel surfaces by key, butthey toggle one specific surface rather than cycling, and there is no equivalent for
Files, Agents, Pull request, or a right-panel terminal. One command per surface kind
scales worse than two cycle commands.
switch right-panel surfaces.
Risks or tradeoffs
A focused browser or terminal receives keys first, so a
ctrl+tabbinding may need a!terminalFocusguard.All reactions