From 68e484ae2a7a58925066bc0d6cd4679df772ecd9 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 23 Jan 2021 18:33:39 -0500 Subject: update keybindings.json for vscode --- utils/vscode_config/keybindings.json | 80 ++++++------------------------------ 1 file changed, 12 insertions(+), 68 deletions(-) (limited to 'utils') diff --git a/utils/vscode_config/keybindings.json b/utils/vscode_config/keybindings.json index f786a00d..8142b76e 100644 --- a/utils/vscode_config/keybindings.json +++ b/utils/vscode_config/keybindings.json @@ -1,9 +1,4 @@ [ - { - "key": "space", - "command": "whichkey.show", - "when": "neovim.mode != 'insert' && !inputFocus" - }, { "key": "shift+ctrl+e", "command": "actions.findWithSelection" @@ -33,12 +28,12 @@ { "key": "j", "command": "list.focusDown", - "when": "listFocus && !inputFocus" + "when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "k", "command": "list.focusUp", - "when": "listFocus && !inputFocus" + "when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" }, { "key": "ctrl+j", @@ -66,7 +61,7 @@ "when": "inQuickOpen" }, { - "key": "shift+tab", + "key": "shit+tab", "command": "selectPrevSuggestion", "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" }, @@ -93,43 +88,18 @@ { "key": "l", "command": "list.select", - "when": "!inputFocus" + "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }, { "key": "o", "command": "list.toggleExpand", - "when": "!inputFocus" + "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }, { "key": "h", "command": "list.collapse", "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }, - { - "key": "d", - "command": "deleteFile", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "y", - "command": "filesExplorer.copy", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "x", - "command": "filesExplorer.cut", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "p", - "command": "filesExplorer.paste", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "v", - "command": "explorer.openToSide", - "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus" - }, { "key": "a", "command": "explorer.newFile", @@ -155,6 +125,11 @@ "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" }, + { + "key": "ctrl+shift+t", + "command": "workbench.action.terminal.focus", + "when": "!terminalFocus" + }, { "key": "ctrl+j", "command": "-editor.action.insertLineAfter", @@ -166,7 +141,7 @@ "when": "!terminalFocus" }, { - "key": "ctrl+t", + "key": "ctrl+shift+t", "command": "workbench.action.togglePanel" }, { @@ -176,7 +151,7 @@ { "key": "shift+k", "command": "editor.action.showHover", - "when": "editorTextFocus && neovim.mode != 'insert'" + "when": "editorTextFocus" }, { "key": "ctrl+k ctrl+i", @@ -192,36 +167,5 @@ "key": "ctrl+f", "command": "-vscode-neovim.ctrl-f", "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" - }, - { - "key": "shift+delete", - "command": "-deleteFile", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "shift+escape", - "command": "notebook.cell.quitEdit", - "when": "inputFocus && notebookEditorFocused && !editorHasSelection && !editorHoverVisible" - }, - { - "key": "escape", - "command": "-notebook.cell.quitEdit", - "when": "inputFocus && notebookEditorFocused && !editorHasSelection && !editorHoverVisible" - }, - { - "key": "ctrl+shift+l", - "command": "workbench.action.increaseViewSize" - }, - { - "key": "ctrl+shift+h", - "command": "workbench.action.decreaseViewSize" - }, - { - "key": "ctrl+shift+t", - "command": "-workbench.action.reopenClosedEditor" - }, - { - "key": "ctrl+shift+t", - "command": "workbench.action.toggleMaximizedPanel" } ] -- cgit v1.2.3