mirror of https://github.com/sgoudham/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
224 lines
5.5 KiB
JSON
224 lines
5.5 KiB
JSON
1 year ago
|
// Place your key bindings in this file to override the defaults
|
||
|
[
|
||
|
// Explorer - Functionality
|
||
|
{
|
||
|
"key": "l",
|
||
|
"command": "workbench.explorer.fileView.focus",
|
||
|
"when": "!editorFocus && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "a",
|
||
|
"command": "explorer.newFile",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "shift+a",
|
||
|
"command": "explorer.newFolder",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !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": "r",
|
||
|
"command": "renameFile",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "d",
|
||
|
"command": "moveFileToTrash",
|
||
|
"when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "shift+d",
|
||
|
"command": "deleteFile",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "c",
|
||
|
"command": "workbench.files.action.collapseExplorerFolders",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "s",
|
||
|
"command": "explorer.openToSide",
|
||
|
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "f",
|
||
|
"command": "revealFileInOS",
|
||
|
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "t",
|
||
|
"command": "openInTerminal",
|
||
|
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "u",
|
||
|
"command": "copyFilePath",
|
||
|
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "i",
|
||
|
"command": "copyRelativeFilePath",
|
||
|
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "enter",
|
||
|
"command": "list.select",
|
||
|
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+-",
|
||
|
"command": "workbench.view.explorer",
|
||
|
"when": "vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+-",
|
||
|
"command": "-workbench.view.explorer",
|
||
|
"when": "explorerViewletVisible"
|
||
|
},
|
||
|
{
|
||
|
"key": "ctrl+n",
|
||
|
"command": "workbench.action.toggleSidebarVisibility",
|
||
|
"when": "vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
|
||
|
// Terminal
|
||
|
{
|
||
|
"key": "ctrl+k",
|
||
|
"command": "workbench.action.togglePanel"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+=",
|
||
|
"command": "workbench.action.terminal.focus",
|
||
|
"when": "vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+=",
|
||
|
"command": "workbench.action.focusActiveEditorGroup",
|
||
|
"when": "terminalFocus"
|
||
|
},
|
||
|
|
||
|
// Tabs/Editors
|
||
|
{
|
||
|
"key": "alt+q",
|
||
|
"command": "workbench.action.closeActiveEditor"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+a",
|
||
|
"command": "workbench.action.closeAllEditors"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+,",
|
||
|
"command": "workbench.action.closeOtherEditors"
|
||
|
},
|
||
|
|
||
|
// Page Navigation
|
||
|
{
|
||
|
"key": "alt+n",
|
||
|
"command": "scrollLineDown",
|
||
|
"when": "textInputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+p",
|
||
|
"command": "scrollLineUp",
|
||
|
"when": "textInputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+n",
|
||
|
"command": "scrollPageDown",
|
||
|
"when": "textInputFocus"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+p",
|
||
|
"command": "scrollPageUp",
|
||
|
"when": "textInputFocus"
|
||
|
},
|
||
|
|
||
|
// Move Around Editors
|
||
|
{
|
||
|
"key": "ctrl+h",
|
||
|
"command": "workbench.action.previousEditor",
|
||
|
"when": "vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "ctrl+l",
|
||
|
"command": "workbench.action.nextEditor",
|
||
|
"when": "vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+h",
|
||
|
"command": "workbench.action.focusLeftGroup",
|
||
|
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+l",
|
||
|
"command": "workbench.action.focusRightGroup",
|
||
|
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+k",
|
||
|
"command": "workbench.action.focusAboveGroup",
|
||
|
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+j",
|
||
|
"command": "workbench.action.focusBelowGroup",
|
||
|
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
|
||
|
},
|
||
|
|
||
|
// Down Motion
|
||
|
{
|
||
|
"key": "alt+j",
|
||
|
"command": "selectNextSuggestion",
|
||
|
"when": "suggestWidgetVisible"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+j",
|
||
|
"command": "workbench.action.quickOpenSelectNext",
|
||
|
"when": "inQuickOpen"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+j",
|
||
|
"command": "selectNextCodeAction",
|
||
|
"when": "codeActionMenuVisible"
|
||
|
},
|
||
|
|
||
|
// Up Motion
|
||
|
{
|
||
|
"key": "alt+k",
|
||
|
"command": "selectPrevSuggestion",
|
||
|
"when": "suggestWidgetVisible"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+k",
|
||
|
"command": "workbench.action.quickOpenSelectPrevious",
|
||
|
"when": "inQuickOpen"
|
||
|
},
|
||
|
{
|
||
|
"key": "alt+k",
|
||
|
"command": "selectPrevCodeAction",
|
||
|
"when": "codeActionMenuVisible"
|
||
|
},
|
||
|
|
||
|
// LSP
|
||
|
{
|
||
|
"key": "shift+k",
|
||
|
"command": "editor.action.showDefinitionPreviewHover",
|
||
|
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
|
||
|
}
|
||
|
]
|