-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Bind directional hjkl
for the Problems panel
#211297
Comments
See your SO question for a possible answer: https://stackoverflow.com/a/78381623/836330 But it seems to me that the So this "might" be a bug, but these more specific keybindings do work: {
"key": "k",
"command": "list.focusUp",
// "when": "workbench.panel.markers.view.active"
"when": "listFocus && !inputFocus && !treestickyScrollFocused"
},
{
"key": "j",
"command": "list.focusDown",
// "when": "workbench.panel.markers.view.active"
"when": "listFocus && !inputFocus && !treestickyScrollFocused"
} |
Copying my comment from SO:
|
Thanks for the fix, I'll try it out on the next update. For now, I'm using the following workaround from the stackoverflow post: {
"key": "k",
"command": "list.focusUp",
"when": "focusedView == 'workbench.panel.markers.view'"
},
{
"key": "j",
"command": "list.focusDown",
"when": "focusedView == 'workbench.panel.markers.view'"
},
{
"key": "h",
"command": "runCommands",
"args": {
"commands": [
"list.collapse",
"widgetNavigation.focusNext"
]
},
"when": "focusedView == 'workbench.panel.markers.view'"
},
{
"key": "l",
"command": "runCommands",
"args": {
"commands": [
"list.expand",
"widgetNavigation.focusNext"
]
},
"when": "focusedView == 'workbench.panel.markers.view'"
} The |
This bug has been fixed in the latest release of VS Code Insiders! @musjj, you can help us out by commenting If things still don't seem right, please ensure you're on version 3415990 of Insiders (today's or later - you can use Happy Coding! |
Works perfectly in code insiders, thanks for the fix! (collapse/expand also works without using the hack above). |
I'm trying to bind a vim-style
hjkl
mapping in the Problems panel as a substitute for directional arrow keys, but it doesn't seem to be possible right now.Exposing the directional commands for the Problems panel just like
list.focus{Up,Down}
,list.{expand,collapse}
, etc. would be a really great feature.The text was updated successfully, but these errors were encountered: