This repository has been archived on 2023-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
vscode/keybindings.json

393 lines
9.4 KiB
JSON
Raw Normal View History

2022-04-10 15:41:54 +00:00
[
// Terminals
{
"key": "cmd+t",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+o",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "ctrl+i",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "ctrl+k",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
{
"key": "ctrl+enter",
"command": "workbench.action.terminal.newInActiveWorkspace",
"when": "terminalFocus"
},
{
2022-04-13 20:50:25 +00:00
"key": "ctrl+shift+enter",
2022-04-10 15:41:54 +00:00
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
2022-04-13 20:50:25 +00:00
"key": "ctrl+shift+i",
2022-04-10 15:41:54 +00:00
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
2022-04-13 20:50:25 +00:00
"key": "ctrl+shift+o",
2022-04-10 15:41:54 +00:00
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "pagedown",
"command": "workbench.action.terminal.scrollDownPage",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+pagedown",
"command": "-workbench.action.terminal.scrollDownPage",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "pageup",
"command": "workbench.action.terminal.scrollUpPage",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+pageup",
"command": "-workbench.action.terminal.scrollUpPage",
"when": "terminalFocus && terminalProcessSupported"
},
// Navigations
{
"key": "ctrl+h",
"command": "list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+l",
"command": "list.expand",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+k",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+j",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
2023-01-11 07:53:22 +00:00
{
"key": "ctrl+n",
"command": "selectNextSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "ctrl+p",
"command": "selectPrevSuggestion",
"when": "suggestWidgetVisible"
},
{
"key": "ctrl+n",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
2022-12-20 18:53:18 +00:00
// Editor
2022-04-10 15:41:54 +00:00
{
"key": "ctrl+q ctrl+q",
"command": "workbench.action.closeEditorsInOtherGroups",
"when": "editorTextFocus"
},
2022-05-25 19:35:23 +00:00
{
"key": "ctrl+q ctrl+g",
"command": "workbench.action.closeEditorsInGroup",
"when": "editorTextFocus"
},
2022-04-10 15:41:54 +00:00
{
"key": "ctrl+q ctrl+o",
"command": "workbench.action.closeOtherEditors"
},
{
"key": "ctrl+q ctrl+w",
"command": "workbench.action.closeAllEditors"
},
2022-12-20 18:53:18 +00:00
{
"key": "ctrl+escape",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
2022-10-29 14:29:08 +00:00
// Editor nav
2022-05-25 19:35:23 +00:00
{
"key": "meta+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "meta+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+2",
"command": "-workbench.action.focusSecondEditorGroup"
},
{
"key": "meta+3",
"command": "workbench.action.focusThirdEditorGroup"
},
{
"key": "ctrl+3",
"command": "-workbench.action.focusThirdEditorGroup"
},
{
"key": "meta+0",
"command": "workbench.action.focusSideBar"
},
{
"key": "ctrl+0",
"command": "-workbench.action.focusSideBar"
},
// Jumplist
2022-04-10 15:41:54 +00:00
{
"key": "ctrl+o",
"command": "workbench.action.navigateBack"
2022-04-10 15:41:54 +00:00
},
{
"key": "ctrl+i",
"command": "workbench.action.navigateForward"
2022-04-10 15:41:54 +00:00
},
// Error navigation
{
"key": "ctrl+e n",
"command": "editor.action.marker.nextInFiles",
"when": "editorFocus && !editorReadonly"
},
{
"key": "ctrl+e p",
"command": "editor.action.marker.prevInFiles",
"when": "editorFocus && !editorReadonly"
},
{
"key": "f8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus && !editorReadonly"
},
{
"key": "shift+f8",
"command": "-editor.action.marker.prevInFiles",
"when": "editorFocus && !editorReadonly"
},
// Panel
{
"key": "ctrl+,",
"command": "workbench.action.toggleMaximizedPanel"
},
2022-11-05 11:40:15 +00:00
{
"key": "ctrl+shift+oem_8",
"command": "docsView.documentation.focus"
},
2022-10-29 14:29:08 +00:00
// Spacecode
2022-04-10 15:41:54 +00:00
{
"key": "ctrl+space",
"command": "vspacecode.space"
},
// Notifications
{
"key": "ctrl+y ;",
"command": "notifications.clearAll"
},
{
"key": "ctrl+y .",
"command": "notifications.showList"
},
// Multiple cursors
{
"key": "ctrl+shift+j",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+k",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+j",
"command": "-workbench.action.search.toggleQueryDetails",
"when": "inSearchEditor || searchViewletFocus"
},
{
"key": "ctrl+shift+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
// Git
{
2022-05-04 05:37:53 +00:00
"key": "cmd+g cmd+c",
"command": "workbench.action.addComment"
},
{
"key": "shift+cmd+g",
"command": "pr:github.focus"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g n",
2022-11-05 11:38:11 +00:00
"command": "workbench.action.compareEditor.nextChange"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g n",
2022-11-05 11:38:11 +00:00
"command": "workbench.action.editor.nextChange"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g n",
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g p",
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g n",
"command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
2022-04-10 15:41:54 +00:00
},
{
2022-05-04 05:37:53 +00:00
"key": "ctrl+g p",
"command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
2022-04-10 15:41:54 +00:00
},
// Magit
2022-06-29 21:05:23 +00:00
{
"key": "g r",
"command": "magit.refresh",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
2022-04-10 15:41:54 +00:00
{
"key": "tab",
"command": "extension.vim_tab",
"when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert' && editorLangId != 'magit'"
},
{
"key": "g g",
"command": "cursorTop",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "x",
"command": "magit.discard-at-point",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "n",
"command": "magit.reverse-at-point",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "shift+o",
"command": "magit.resetting",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "shift+n",
"command": "magit.reverting",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
2022-04-23 18:31:59 +00:00
{
"key": "ctrl+[BracketRight]",
"command": "magit.process-log"
},
2022-04-10 15:41:54 +00:00
// Magit resets
{
"key": "k",
"command": "-magit.discard-at-point"
},
{
"key": "tab",
"command": "-extension.vim_tab",
"when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'"
},
{
"key": "shift+v",
"command": "-magit.reverting"
},
{
"key": "shift+x",
"command": "-magit.resetting"
},
{
"key": "x",
"command": "-magit.reset-mixed"
},
{
"key": "ctrl+u x",
"command": "-magit.reset-hard"
},
{
"key": "v",
"command": "-magit.reverse-at-point"
},
{
"key": "shift+1",
"command": "-magit.running",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "shift+5",
"command": "-magit.worktree",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
},
{
"key": "shift+4",
"command": "-magit.process-log",
"when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/"
2022-10-29 14:29:08 +00:00
},
// Misc resets with no rebind
{
"key": "shift+alt+[Period]",
"command": "-gitlens.gitCommands",
"when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'"
2022-04-10 15:41:54 +00:00
}
]