Created
June 3, 2024 20:38
-
-
Save itse4elhaam/5a0749709003d4cda284eba2956e07ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+p", | |
"command": "-extension.vim_ctrl+p", | |
"when": "editorTextFocus && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "-extension.vim_ctrl+b", | |
"when": "editorTextFocus && vim.active && vim.use<C-b> && !inDebugRepl && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-extension.vim_ctrl+a", | |
"when": "editorTextFocus && vim.active && vim.use<C-a> && !inDebugRepl" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "-extension.vim_ctrl+c", | |
"when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "-extension.vim_ctrl+d", | |
"when": "editorTextFocus && vim.active && vim.use<C-d> && !inDebugRepl" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-extension.vim_cmd+alt+down", | |
"when": "editorTextFocus && vim.active && !inDebugRepl" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "-extension.vim_navigateCtrlL", | |
"when": "editorTextFocus && vim.active && vim.use<C-l> && !inDebugRepl" | |
}, | |
// these are my custom key bindings | |
{ | |
"key": "ctrl+shift+a", | |
"command": "workbench.action.terminal.focusNext", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+shift+b", | |
"command": "workbench.action.terminal.focusPrevious", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+shift+j", | |
"command": "workbench.action.togglePanel" | |
}, | |
{ | |
"key": "ctrl+shift+n", | |
"command": "workbench.action.terminal.new", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+shift+w", | |
"command": "workbench.action.terminal.kill", | |
"when": "terminalFocus" | |
}, | |
// FILE TREE | |
{ | |
"command": "workbench.action.toggleSidebarVisibility", | |
"key": "ctrl+b" | |
}, | |
{ | |
"command": "workbench.files.action.focusFilesExplorer", | |
"key": "ctrl+b", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "n", | |
"command": "explorer.newFile", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
{ | |
"command": "renameFile", | |
"key": "r", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
{ | |
"key": "shift+n", | |
"command": "explorer.newFolder", | |
"when": "explorerViewletFocus" | |
}, | |
{ | |
"key": "shift+n", | |
"command": "workbench.action.newWindow", | |
"when": "!explorerViewletFocus" | |
}, | |
{ | |
"command": "deleteFile", | |
"key": "d", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
// EXTRA | |
{ | |
"key": "ctrl+shift+5", | |
"command": "editor.emmet.action.matchTag" | |
}, | |
{ | |
"command": "expand_region", | |
"key": "ctrl+=", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"command": "undo_expand_region", | |
"key": "ctrl+-", | |
"when": "editorTextFocus && editorHasSelection" | |
}, | |
{ | |
"command": "filesExplorer.copy", | |
"key": "c", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
{ | |
"command": "filesExplorer.paste", | |
"key": "p", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
{ | |
"command": "find", | |
"key": "p", | |
"when": "filesExplorerFocus && !inputFocus" | |
}, | |
{ | |
"key": "space f", | |
"command": "actions.find", | |
"when": "editorFocus || editorIsOpen" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "-actions.find", | |
"when": "editorFocus || editorIsOpen" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment