adding other bind key
This commit is contained in:
352
keybind.json
Normal file
352
keybind.json
Normal file
@@ -0,0 +1,352 @@
|
||||
[
|
||||
{
|
||||
"key": "ctrl-h",
|
||||
"command": "workbench.action.navigateLeft"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-l",
|
||||
"command": "workbench.action.navigateRight"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-k",
|
||||
"command": "workbench.action.navigateUp"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-j",
|
||||
"command": "workbench.action.navigateDown"
|
||||
},
|
||||
{
|
||||
"key": "space e",
|
||||
"command": "runCommands",
|
||||
"args": {
|
||||
"commands": [
|
||||
"workbench.action.toggleSidebarVisibility",
|
||||
"workbench.files.action.focusFilesExplorer"
|
||||
]
|
||||
},
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus) && !sideBarFocus"
|
||||
},
|
||||
{
|
||||
"key": "space e",
|
||||
"command": "runCommands",
|
||||
"args": {
|
||||
"commands": [
|
||||
"workbench.action.toggleSidebarVisibility",
|
||||
"workbench.action.focusActiveEditorGroup"
|
||||
]
|
||||
},
|
||||
"when": "sideBarFocus && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "space e",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus && foldersViewVisible",
|
||||
"command": "workbench.action.toggleSidebarVisibility"
|
||||
},
|
||||
{
|
||||
"key": "s h",
|
||||
"command": "workbench.action.splitEditor",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "s v",
|
||||
"command": "workbench.action.splitEditorDown",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c a",
|
||||
"command": "editor.action.codeAction",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift-k",
|
||||
"command": "editor.action.moveLinesUpAction",
|
||||
"when": "vim.mode == 'VisualLine' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift-j",
|
||||
"command": "editor.action.moveLinesDownAction",
|
||||
"when": "vim.mode == 'VisualLine' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift-k",
|
||||
"command": "editor.action.showHover",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space c r",
|
||||
"command": "editor.action.rename",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space c s",
|
||||
"command": "workbench.action.gotoSymbol",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space b d",
|
||||
"command": "workbench.action.closeActiveEditor",
|
||||
"when": "(vim.mode == 'Normal' && editorTextFocus) || !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "space b o",
|
||||
"command": "workbench.action.closeOtherEditors",
|
||||
"when": "(vim.mode == 'Normal' && editorTextFocus) || !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "space space",
|
||||
"command": "workbench.action.quickOpen",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space g d",
|
||||
"command": "editor.action.revealDefinition",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space g r",
|
||||
"command": "editor.action.goToReferences",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space g i",
|
||||
"command": "editor.action.goToImplementation",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space s g",
|
||||
"command": "workbench.action.findInFiles",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space g g",
|
||||
"command": "runCommands",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)",
|
||||
"args": {
|
||||
"commands": ["workbench.view.scm", "workbench.scm.focus"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "ctrl-n",
|
||||
"command": "editor.action.addSelectionToNextFindMatch",
|
||||
"when": "(vim.mode == 'Normal' || vim.mode == 'Visual') && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-n",
|
||||
"command": "workbench.action.toggleSidebarVisibility",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space f s",
|
||||
"command": "workbench.action.findInFiles",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "n",
|
||||
"command": "search.action.focusNextSearchResult",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "shift-n",
|
||||
"command": "search.action.focusPreviousSearchResult",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-w h",
|
||||
"command": "workbench.action.navigateLeft",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-w l",
|
||||
"command": "workbench.action.navigateRight",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-w k",
|
||||
"command": "workbench.action.navigateUp",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-w j",
|
||||
"command": "workbench.action.navigateDown",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "r",
|
||||
"command": "renameFile",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "x",
|
||||
"command": "filesExplorer.cut",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "d",
|
||||
"command": "deleteFile",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "a",
|
||||
"command": "explorer.newFile",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "s",
|
||||
"command": "explorer.openToSide",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift-s",
|
||||
"command": "runCommands",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
|
||||
"args": {
|
||||
"commands": [
|
||||
"workbench.action.splitEditorDown",
|
||||
"explorer.openAndPassFocus",
|
||||
"workbench.action.closeOtherEditors"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "enter",
|
||||
"command": "explorer.openAndPassFocus",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceIsFolder && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "enter",
|
||||
"command": "list.toggleExpand",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && explorerResourceIsFolder && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "space d a",
|
||||
"command": "workbench.action.debug.selectandstart",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus) && debuggersAvailable"
|
||||
},
|
||||
{
|
||||
"key": "space d t",
|
||||
"command": "workbench.action.debug.stop",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus && inDebugMode && !focusedSessionIsAttached"
|
||||
},
|
||||
{
|
||||
"key": "space d o",
|
||||
"command": "workbench.action.debug.stepOver",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus) && inDebugMode && debugState == 'stopped'"
|
||||
},
|
||||
{
|
||||
"key": "space d b",
|
||||
"command": "editor.debug.action.toggleBreakpoint",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "space d e",
|
||||
"command": "editor.debug.action.showDebugHover",
|
||||
"when": "vim.mode == 'Normal' && editorTextFocus && inDebugMode && debugState == 'stopped'"
|
||||
},
|
||||
{
|
||||
"key": "space d c",
|
||||
"command": "workbench.action.debug.continue",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus) && inDebugMode && debugState == 'stopped'"
|
||||
},
|
||||
{
|
||||
"key": "space u",
|
||||
"command": "editor.action.selectAll",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space w",
|
||||
"command": "workbench.action.files.save",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space q",
|
||||
"command": "workbench.action.closeActiveEditor",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space x a",
|
||||
"command": "workbench.action.closeAllEditors",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "y",
|
||||
"command": "editor.action.clipboardCopyAction",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "d d",
|
||||
"command": "editor.action.deleteLines",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "p",
|
||||
"command": "editor.action.clipboardPasteAction",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-e",
|
||||
"command": "editorScroll",
|
||||
"args": { "to": "down", "by": "line", "value": 10, "revealCursor": true },
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-y",
|
||||
"command": "editorScroll",
|
||||
"args": { "to": "up", "by": "line", "value": 10, "revealCursor": true },
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space n t",
|
||||
"command": "workbench.files.action.showActiveFileInExplorer",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "o",
|
||||
"command": "workbench.action.splitEditorRight",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "i",
|
||||
"command": "workbench.action.splitEditorDown",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-p",
|
||||
"command": "workbench.action.previousEditor",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "ctrl-n",
|
||||
"command": "workbench.action.nextEditor",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c c",
|
||||
"command": "workbench.action.openChat",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c q",
|
||||
"command": "workbench.action.closeChat",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c i",
|
||||
"command": "workbench.action.focusChatInput",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c n",
|
||||
"command": "workbench.action.newChat",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c k",
|
||||
"command": "workbench.action.keepChat",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
},
|
||||
{
|
||||
"key": "space c u",
|
||||
"command": "workbench.action.undoChatChanges",
|
||||
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user