330 lines
7.8 KiB
JSON
330 lines
7.8 KiB
JSON
[
|
|
// Vim
|
|
{
|
|
"key": "ctrl+i",
|
|
"command": "extension.vim_ctrl+i",
|
|
"when": "editorTextFocus && vim.active && vim.use<C-i> && !inDebugRepl"
|
|
},
|
|
// 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"
|
|
},
|
|
{
|
|
"key": "ctrl+shift+n",
|
|
"command": "workbench.action.terminal.split",
|
|
"when": "terminalFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+shift+o",
|
|
"command": "workbench.action.terminal.focusPreviousPane",
|
|
"when": "terminalFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+shift+i",
|
|
"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"
|
|
},
|
|
{
|
|
"key": "ctrl+q ctrl+q",
|
|
"command": "workbench.action.closeEditorsInOtherGroups",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+q ctrl+o",
|
|
"command": "workbench.action.closeOtherEditors"
|
|
},
|
|
{
|
|
"key": "ctrl+q ctrl+w",
|
|
"command": "workbench.action.closeAllEditors"
|
|
},
|
|
// Cursor hover
|
|
{
|
|
"key": "ctrl+i ctrl+i",
|
|
"command": "editor.action.showHover",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+k ctrl+i",
|
|
"command": "-editor.action.showHover",
|
|
"when": "editorTextFocus"
|
|
},
|
|
// Diff navigation
|
|
{
|
|
"key": "ctrl+d n",
|
|
"command": "workbench.action.compareEditor.nextChange",
|
|
"when": "textCompareEditorVisible"
|
|
},
|
|
{
|
|
"key": "ctrl+d p",
|
|
"command": "workbench.action.compareEditor.previousChange",
|
|
"when": "textCompareEditorVisible"
|
|
},
|
|
// 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"
|
|
},
|
|
{
|
|
"key": "ctrl+space",
|
|
"command": "vspacecode.space"
|
|
},
|
|
// Misc resets with no rebind
|
|
{
|
|
"key": "ctrl+o",
|
|
"command": "-extension.vim_ctrl+o",
|
|
"when": "editorTextFocus && vim.active && vim.use<C-o> && !inDebugRepl"
|
|
},
|
|
// 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
|
|
{
|
|
"key": "ctrl+g s",
|
|
"command": "git.stage"
|
|
},
|
|
{
|
|
"key": "ctrl+g u",
|
|
"command": "git.unstage"
|
|
},
|
|
{
|
|
"key": "ctrl+g s",
|
|
"command": "git.stageSelectedRanges",
|
|
"when": "isInDiffEditor"
|
|
},
|
|
{
|
|
"key": "ctrl+g u",
|
|
"command": "git.unstageSelectedRanges",
|
|
"when": "isInDiffEditor"
|
|
},
|
|
{
|
|
"key": "ctrl+g o",
|
|
"command": "git.openChange"
|
|
},
|
|
{
|
|
"key": "ctrl+k ctrl+alt+s",
|
|
"command": "-git.stageSelectedRanges",
|
|
"when": "isInDiffEditor"
|
|
},
|
|
{
|
|
"key": "ctrl+k ctrl+u",
|
|
"command": "-git.unstageSelectedRanges",
|
|
"when": "isInDiffEditor"
|
|
},
|
|
// Magit
|
|
{
|
|
"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).*$/"
|
|
},
|
|
// 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).*$/"
|
|
}
|
|
]
|