summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <[email protected]>2021-01-23 18:33:39 -0500
committerChris <[email protected]>2021-01-23 18:33:39 -0500
commit68e484ae2a7a58925066bc0d6cd4679df772ecd9 (patch)
tree36331c9da90ebe2f1ec47f461d28211c2455f5ae
parent3c91d94863e6c69c7d6a6b60fc29dd9d37c6db66 (diff)
update keybindings.json for vscode
-rw-r--r--utils/vscode_config/keybindings.json80
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"
}
]