From b2266d438d56cd64a87b300bf872a41fe7d71e24 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 7 Jan 2026 08:14:33 +0000 Subject: [PATCH] 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. --- keybindings.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/keybindings.json b/keybindings.json index c09498f..974f858 100644 --- a/keybindings.json +++ b/keybindings.json @@ -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