From ee3ee0efd8f1d4c518b20bd98b0a09194896a7f3 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 22 Jan 2022 15:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'keybindings.json'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keybindings.json | 51 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/keybindings.json b/keybindings.json index f3ad63f..337bc5f 100644 --- a/keybindings.json +++ b/keybindings.json @@ -346,37 +346,62 @@ { "key": "cmd+1", "command": "workbench.action.terminal.focusAtIndex1", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" + }, + { + "key": "cmd+1", + "command": "workbench.action.terminal.focusAtIndex1", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+2", "command": "workbench.action.terminal.focusAtIndex2", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" + }, + { + "key": "cmd+2", + "command": "workbench.action.terminal.focusAtIndex2", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+3", "command": "workbench.action.terminal.focusAtIndex3", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" + }, + { + "key": "cmd+3", + "command": "workbench.action.terminal.focusAtIndex3", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+4", "command": "workbench.action.terminal.focusAtIndex4", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" + }, + { + "key": "cmd+4", + "command": "workbench.action.terminal.focusAtIndex4", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+5", "command": "workbench.action.terminal.focusAtIndex5", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" + }, + { + "key": "cmd+5", + "command": "workbench.action.terminal.focusAtIndex5", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+6", "command": "workbench.action.terminal.focusAtIndex6", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "when": "terminalFocus && !terminalEditorFocus" }, { - "key": "cmd+7", - "command": "workbench.action.terminal.focusAtIndex7", - "when": "(terminalFocus || terminalFindFocused) && !terminalEditorFocus" + "key": "cmd+6", + "command": "workbench.action.terminal.focusAtIndex6", + "when": "terminalFindFocused && !terminalEditorFocus" }, { "key": "cmd+shift+e", @@ -447,4 +472,12 @@ "command": "closeFindWidget", "when": "findWidgetVisible" }, + { + "key": "cmd+1", + "command": "-workbench.action.focusFirstEditorGroup" + }, + { + "key": "cmd+2", + "command": "-workbench.action.focusSecondEditorGroup" + }, ] \ No newline at end of file