-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybindings.json
115 lines (115 loc) · 14.8 KB
/
keybindings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Place your key bindings in this file to override the defaults
[
{ "key": "alt+b", "command": "cursorWordLeft", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "alt+b", "command": "cursorWordStartLeft", "when": "textInputFocus" },
{ "key": "alt+c", "command": "editor.action.transformToTitlecase", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "alt+d", "command": "deleteWordRight", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "alt+d", "command": "deleteWordRight", "when": "textInputFocus && !editorReadonly" },
{ "key": "alt+enter", "command": "editor.action.quickFix", "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" },
{ "key": "alt+f", "command": "cursorWordEndRight", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "alt+f", "command": "cursorWordEndRight", "when": "textInputFocus" },
{ "key": "alt+l", "command": "editor.action.transformToLowercase", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "alt+space", "command": "editor.action.previewDeclaration", "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" },
{ "key": "alt+u", "command": "editor.action.transformToUppercase", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "cmd+alt+b", "command": "editor.action.goToImplementation", "when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor" },
{ "key": "cmd+alt+i", "command": "quarto.insertCodeCell", "when": "editorTextFocus && !editorReadonly && editorLangId == 'quarto'" },
{ "key": "cmd+alt+shift+c", "command": "quarto.goToPreviousCell", "when": "editorTextFocus && editorLangId == 'quarto'"},
{ "key": "Shift+Tab", "command": "editor.action.showHover", "when": "editorTextFocus"},
{ "key": "cmd+alt+c", "command": "quarto.goToNextCell", "when": "editorTextFocus && editorLangId == 'quarto'"},
{ "key": "cmd+shift+a", "command": "quarto.renderAll", "when": "editorTextFocus && editorLangId == 'quarto'"},
{ "key": "cmd+shift+r", "command": "quarto.render", "when": "editorTextFocus && editorLangId == 'quarto'"},
{ "key": "cmd+alt+l", "command": "editor.action.formatDocument", "when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly" },
{ "key": "cmd+alt+l", "command": "editor.action.formatSelection", "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" },
{ "key": "cmd+alt+l", "command": "quarto.formatCell", "when": "editorTextFocus && !editorHasSelection && editorLangId == 'quarto'" },
{ "key": "cmd+alt+m", "command": "editor.action.codeAction", "when": "editorTextFocus", "args": { "kind": "refactor.extract.function", "apply": "ifSingle" } },
{ "key": "cmd+alt+o", "command": "workbench.action.gotoSymbol" },
{ "key": "cmd+alt+v", "command": "editor.action.codeAction", "when": "editorTextFocus", "args": { "kind": "refactor.extract.constant", "apply": "ifSingle" } },
{ "key": "cmd+alt+y", "command": "workbench.action.sync" },
{ "key": "cmd+alt+z", "command": "git.revertSelectedRanges", "when": "editorHasSelection && editorTextFocus && !editorReadonly" },
{ "key": "cmd+down", "command": "editor.action.goToDeclaration", "when": "editorHasDefinitionProvider && editorTextFocus" },
{ "key": "cmd+enter", "command": "python.datascience.execSelectionInteractive", "when": "editorTextFocus && python.datascience.featureenabled && python.datascience.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" },
{ "key": "cmd+enter", "command": "python.execSelectionInTerminal", "when": "editorTextFocus && !findInputFocussed && !python.datascience.ownsSelection && !replaceInputFocussed && editorLangId == 'python'" },
{ "key": "cmd+shift+'", "command": "workbench.action.toggleMaximizedPanel" },
{ "key": "cmd+shift+enter", "command": "acceptSelectedSuggestion", "when": "editorFocus && suggestWidgetVisible" },
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"},
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus", "when": "!terminalFocus"},
{ "key": "ctrl+6", "command": "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup", "when": "!activeEditorGroupEmpty" },
{ "key": "ctrl+6", "command": "workbench.action.quickOpenNavigateNextInEditorPicker", "when": "inEditorsPicker && inQuickOpen" },
{ "key": "ctrl+a", "command": "cursorLineStart", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "ctrl+alt+b", "command": "cursorWordPartLeft", "when": "textInputFocus" },
{ "key": "ctrl+alt+d", "command": "deleteWordPartRight", "when": "textInputFocus && !editorReadonly" },
{ "key": "ctrl+alt+f", "command": "cursorWordPartRight", "when": "textInputFocus" },
{ "key": "ctrl+alt+h", "command": "deleteWordPartLeft", "when": "textInputFocus && !editorReadonly" },
{ "key": "ctrl+d", "command": "deleteRight", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "ctrl+g", "command": "hideSuggestWidget", "when": "suggestWidgetVisible && textInputFocus" },
{ "key": "ctrl+j", "command": "editor.action.showHover", "when": "editorTextFocus" },
{ "key": "ctrl+shift+alt+b", "command": "cursorWordPartLeftSelect", "when": "textInputFocus" },
{ "key": "ctrl+shift+alt+f", "command": "cursorWordPartRightSelect", "when": "textInputFocus" },
{ "key": "ctrl+space", "command": "editor.action.triggerSuggest", "when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+t", "command": "editor.action.transposeLetters", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "ctrl+u", "command": "deleteAllLeft", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "ctrl+w", "command": "deleteWordLeft", "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'" },
{ "key": "shift+alt+b", "command": "cursorWordStartLeftSelect", "when": "textInputFocus" },
{ "key": "shift+alt+f", "command": "cursorWordEndRightSelect", "when": "textInputFocus" },
{ "key": "shift+alt+.", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add . && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+c", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add ${cwd} && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+d", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add ${fileDirname} && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+f", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add ${file} && git commit --message \"M ${relativeFile}\" && git push\u000D" } , "when": "terminalIsOpen" },
{ "key": "shift+alt+g", "command": "workbench.action.terminal.sendSequence", "args": { "text": "quarto publish gh-pages --no-prompt --no-browser\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+l", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git log --oneline -n 5\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+n", "command": "workbench.action.terminal.sendSequence", "args": { "text": "quarto publish netlify --no-prompt --no-browser\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+p", "command": "workbench.action.terminal.sendSequence", "args": { "text": "quarto preview\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+q", "command": "workbench.action.terminal.sendSequence", "args": { "text": "quarto publish quarto-pub --no-prompt --no-browser\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+s", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+t", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add --update && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+u", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add --all && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+alt+w", "command": "workbench.action.terminal.sendSequence", "args": { "text": "git add ${workspaceFolder} && git commit --message \"$(git diff --name-status --cached | tr '[:space:]' ' ')\" && git push\u000D" }, "when": "terminalIsOpen" },
{ "key": "shift+escape", "command": "workbench.action.focusActiveEditorGroup", "when": "!editorTextFocus" },
{ "key": "shift+cmd+g", "command": "workbench.view.scm", "when": "workbench.scm.active" },
{ "key": "ctrl+; a", "command": "workbench.action.toggleActivityBarVisibility" },
{ "key": "ctrl+; b", "command": "breadcrumbs.toggle" },
{ "key": "ctrl+; c", "command": "gitlens.views.commits.focus" },
{ "key": "ctrl+; d", "command": "workbench.action.toggleLightDarkThemes" },
{ "key": "ctrl+; e", "command": "workbench.files.action.focusOpenEditorsView" },
{ "key": "ctrl+; f", "command": "workbench.explorer.fileView.focus" },
{ "key": "ctrl+; g", "command": "workbench.view.extension.gitlensPanel" },
{ "key": "ctrl+; h", "command": "workbench.action.focusSideBar" },
{ "key": "ctrl+; j", "command": "workbench.view.extension.jupyter-variables" },
{ "key": "ctrl+; k", "command": "workbench.action.focusActiveEditorGroup" },
{ "key": "ctrl+; l", "command": "workbench.action.focusAuxiliaryBar" },
{ "key": "ctrl+; m", "command": "editor.action.toggleMinimap" },
{ "key": "ctrl+; o", "command": "workbench.action.output.toggleOutput" },
{ "key": "ctrl+; p", "command": "workbench.action.togglePanel" },
{ "key": "ctrl+; q", "command": "quarto-assist.focus" },
{ "key": "ctrl+; r", "command": "gitlens.views.remotes.focus" },
{ "key": "ctrl+; s", "command": "workbench.action.toggleStatusbarVisibility" },
{ "key": "ctrl+; t", "command": "timeline.focus" },
{ "key": "ctrl+; v", "command": "gitlens.views.branches.focus" },
{ "key": "ctrl+; w", "command": "editor.action.toggleWordWrap" },
{ "key": "ctrl+; x", "command": "workbench.extensions.action.focusExtensionsView" },
{ "key": "ctrl+; z", "command": "workbench.action.toggleZenMode" },
{ "key": "ctrl+; ;", "command": "workbench.action.focusPreviousGroup" },
{ "key": "up", "command": "cursorUp", "when": "editorTextFocus && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible" },
{ "key": "down", "command": "cursorDown", "when": "editorTextFocus && !inDebugRepl && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible" },
{ "key": "k", "command": "cursorUp", "when": "editorTextFocus && !inDebugRepl && neovim.mode == 'normal' && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible" },
{ "key": "j", "command": "cursorDown", "when": "editorTextFocus && !inDebugRepl && neovim.mode == 'normal' && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible" },
{ "key": "cmd+;", "command": "workbench.action.toggleAuxiliaryBar" },
{ "key": "cmd+r", "command": "workbench.action.openRecent" },
{ "key": "shift+alt+v", "command": "open-in-vim.open" },
{ "key": "alt+/", "command": "editor.action.accessibleViewAcceptInlineCompletion", "when": "accessibleViewIsShown && accessibleViewCurrentProviderId == 'inlineCompletions'" },
{ "key": "alt+f", "command": "editor.action.inlineSuggest.acceptNextWord", "when": "inlineSuggestionVisible && !editorReadonly" },
{ "key": "ctrl+f", "command": "editor.action.inlineSuggest.commit", "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible" },
{ "key": "ctrl+f", "command": "editor.action.inlineSuggest.commit", "when": "inlineSuggestionVisible && tabnine.tab-override && !editorTabMovesFocus" },
{ "key": "ctrl+e", "command": "editor.action.inlineSuggest.commit", "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible" },
{ "key": "ctrl+e", "command": "editor.action.inlineSuggest.commit", "when": "inlineSuggestionVisible && tabnine.tab-override && !editorTabMovesFocus" },
{ "key": "ctrl+g", "command": "editor.action.inlineSuggest.hide", "when": "inlineSuggestionVisible" },
{ "key": "x", "command": "workbench.action.closeActiveEditor", "when": "openEditorsFocus" },
{ "key": "shift+escape", "command": "notebook.cell.quitEdit", "when": "inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible" },
{ "key": "shift+escape", "command": "notebook.cell.quitEdit", "when": "notebookEditorFocused && notebookOutputFocused" },
{ "key": "escape", "command": "-notebook.cell.quitEdit", "when": "inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible && !inlineChatFocused" },
{ "key": "escape", "command": "-notebook.cell.quitEdit", "when": "notebookEditorFocused && notebookOutputFocused" },
{ "key": "ctrl+enter", "command": "-notebook.cell.quitEdit", "when": "inputFocus && notebookEditorFocused && !inlineChatFocused && notebookCellType == 'markup'" },
{ "key": "ctrl+; s", "command": "-jupyter.insertCellBelowPosition", "when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !jupyter.webExtension && !notebookEditorFocused" },
{ "key": "j", "command": "notebook.focusNextEditor", "when": "config.notebook.navigation.allowNavigateToSurroundingCells && neovim.mode == 'normal' && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top'" },
{ "key": "k", "command": "notebook.focusPreviousEditor", "when": "config.notebook.navigation.allowNavigateToSurroundingCells && neovim.mode == 'normal' && editorTextFocus && inputFocus && notebookEditorFocused && !accessibilityModeEnabled && !isEmbeddedDiffEditor && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'" }
]