-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sidebarFocus
, panelFocus
, a real editorFocus
and focus
for each view
#59858
Comments
Yes, possibly in the base class of all panels and views ( How does this work when an extension contributes a view? |
Maybe Together with a |
All views in the side bar do not extend Composite, they are |
@octref your last comment makes sense. |
Actually |
Thinking on this again, |
sidebarFocus and panelFocus, part of #59858
For those who are interested, here's my config: [
{ "key": "cmd+]", "command": "workbench.action.nextEditor" },
{ "key": "cmd+[", "command": "workbench.action.previousEditor" },
{
"key": "cmd+]",
"command": "workbench.action.nextSidebarView",
"when": "sidebarFocus"
},
{
"key": "cmd+[",
"command": "workbench.action.previousSidebarView",
"when": "sidebarFocus"
},
{
"key": "cmd+]",
"command": "workbench.action.nextPanelView",
"when": "panelFocus"
},
{
"key": "cmd+[",
"command": "workbench.action.previousPanelView",
"when": "panelFocus"
}
] |
@octref I would definentely add this to the release notes, maybe even with your customisation to make it more easy for people to navigate. |
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:
filesExplorerFocus
for sidebar views. It's not evenexplorerFocus
, meaning that focusing onOpen Editors
orOutlines
doesn't workterminalFocus
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.The text was updated successfully, but these errors were encountered: