-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitykeybindingsVS Code keybinding issuesVS Code keybinding issueson-testplan
Milestone
Description
Related: #44796 (comment)
I opened #59270 to add 4 commands:
workbench.action.previousPanelView
workbench.action.previousSidebarView
workbench.action.nextPanelView
workbench.action.nextSidebarView
The way I want it to work:
Ctrl-[
:
workbench.action.previousPanelView
whenpanelFocus
workbench.action.previousSidebarView
whensidebarFocus
workbench.action.previousEditor
wheneditorFocus
Ctrl-]
:
workbench.action.nextPanelView
whenpanelFocus
workbench.action.nextSidebarView
whensidebarFocus
workbench.action.nextEditor
wheneditorFocus
They are impossible because of many keybinding issues:
- We only have
filesExplorerFocus
for sidebar views. It's not evenexplorerFocus
, meaning that focusing onOpen Editors
orOutlines
doesn't work - We only have
terminalFocus
for panel views. editorFocus
applies to the input box in search view, input in debug console, etc. There is no context key foreditorFocus
activeViewlet
andactivePanel
do not help. For example, if I have both sidebar and panel open,activeViewlet
always wins in the following setting, even if I'm focused on terminal.
[
{
"key": "cmd+]",
"command": "workbench.action.nextEditor"
},
{
"key": "cmd+[",
"command": "workbench.action.previousEditor"
},
{ "key": "cmd+]", "command": "workbench.action.nextSidebarView", "when": "activeViewlet == workbench.view.explorer" },
{ "key": "cmd+]", "command": "workbench.action.nextSidebarView", "when": "activeViewlet == workbench.view.search" },
{ "key": "cmd+]", "command": "workbench.action.nextSidebarView", "when": "activeViewlet == workbench.view.scm" },
{ "key": "cmd+]", "command": "workbench.action.nextSidebarView", "when": "activeViewlet == workbench.view.debug" },
{ "key": "cmd+]", "command": "workbench.action.nextSidebarView", "when": "activeViewlet == workbench.view.extensions" },
{ "key": "cmd+[", "command": "workbench.action.previousSidebarView", "when": "activeViewlet == workbench.view.explorer" },
{ "key": "cmd+[", "command": "workbench.action.previousSidebarView", "when": "activeViewlet == workbench.view.search" },
{ "key": "cmd+[", "command": "workbench.action.previousSidebarView", "when": "activeViewlet == workbench.view.scm" },
{ "key": "cmd+[", "command": "workbench.action.previousSidebarView", "when": "activeViewlet == workbench.view.debug" },
{ "key": "cmd+[", "command": "workbench.action.previousSidebarView", "when": "activeViewlet == workbench.view.extensions" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.panel.markers" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.panel.output" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.panel.repl" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.panel.terminal" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.panel.comments" },
{ "key": "cmd+]", "command": "workbench.action.nextPanelView", "when": "activePanel == workbench.view.search" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.panel.markers" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.panel.output" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.panel.repl" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.panel.terminal" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.panel.comments" },
{ "key": "cmd+[", "command": "workbench.action.previousPanelView", "when": "activePanel == workbench.view.search" }
]
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitykeybindingsVS Code keybinding issuesVS Code keybinding issueson-testplan