diff options
-rw-r--r-- | utils/vscode_config/keybindings.json | 80 |
1 files changed, 12 insertions, 68 deletions
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,10 +1,5 @@ [ { - "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,12 +88,12 @@ { "key": "l", "command": "list.select", - "when": "!inputFocus" + "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }, { "key": "o", "command": "list.toggleExpand", - "when": "!inputFocus" + "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }, { "key": "h", @@ -106,31 +101,6 @@ "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", "when": "filesExplorerFocus && !inputFocus" @@ -156,6 +126,11 @@ "when": "terminalFocus" }, { + "key": "ctrl+shift+t", + "command": "workbench.action.terminal.focus", + "when": "!terminalFocus" + }, + { "key": "ctrl+j", "command": "-editor.action.insertLineAfter", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" @@ -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" } ] |