chore(keybindings): refine navigation keybindings for editor and file explorer

- Updated conditions for navigating right to exclude file explorer focus.
- Added new keybindings to navigate back to the editor from the file explorer.
This commit is contained in:
2026-01-07 08:14:33 +00:00
parent e00ad8b321
commit b2266d438d

View File

@@ -313,12 +313,12 @@
{ // Navigate right.
"key": "alt+l",
"command": "workbench.action.navigateRight",
"when": "!panelFocus"
"when": "!panelFocus && !filesExplorerFocus"
},
{ // Navigate right.
"key": "cmd+alt+right",
"command": "workbench.action.navigateRight",
"when": "!panelFocus"
"when": "!panelFocus && !filesExplorerFocus"
},
{ // Navigate left.
"key": "alt+j",
@@ -339,6 +339,16 @@
"command": "workbench.action.focusActiveEditorGroup",
"when": "panelFocus"
},
{ // Navigate right back to editor from file explorer.
"key": "alt+l",
"command": "workbench.action.focusActiveEditorGroup",
"when": "filesExplorerFocus"
},
{ // Navigate right back to editor from file explorer.
"key": "cmd+alt+right",
"command": "workbench.action.focusActiveEditorGroup",
"when": "filesExplorerFocus"
},
{ // Navigate up back to editor from terminal.
//
// Workaround for alt+i not working in VSCode. Relies on Karabiner-Elements