mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
feat(vscode-vim): vim keymap fixes, enhancements & statusbar color
changes - change: alt+q -> ctrl+t - toggle terminal - remove: shift+f1 - toggle terminal - fix: shift+escape - toggle and focus side bar. Was not in focus - new: navigate through items in sidebar using j & k earlier - fix: navigate popup options using ctrl+n & ctrl+p - new: change statusbar color on mode change - fix: make yank highlight stay a little longer
This commit is contained in:
@@ -25,11 +25,11 @@
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "alt+q",
|
||||
"key": "ctrl+t",
|
||||
"command": "workbench.action.terminal.focus"
|
||||
},
|
||||
{
|
||||
"key": "alt+q",
|
||||
"key": "ctrl+t",
|
||||
"command": "workbench.action.focusActiveEditorGroup",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
@@ -58,17 +58,56 @@
|
||||
"key": "ctrl+shift+j",
|
||||
"command": "workbench.action.togglePanel"
|
||||
},
|
||||
{
|
||||
"key": "shift+f1",
|
||||
"command": "workbench.action.terminal.toggleTerminal",
|
||||
"when": "terminal.active"
|
||||
},
|
||||
{
|
||||
"key": "shift+escape",
|
||||
"command": "workbench.action.toggleSidebarVisibility"
|
||||
},
|
||||
{
|
||||
"key": "shift+escape",
|
||||
"command": "workbench.action.focusSideBar",
|
||||
"when": "editorTextFocus",
|
||||
},
|
||||
{
|
||||
"key": "shift+escape",
|
||||
"command": "workbench.action.toggleSidebarVisibility",
|
||||
"when": "editorFocus && sideBarVisible",
|
||||
},
|
||||
|
||||
// vim.keybindings
|
||||
// quick open navigation
|
||||
{
|
||||
"key": "ctrl+n",
|
||||
"command": "workbench.action.quickOpenSelectNext",
|
||||
"when": "inQuickOpen"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+p",
|
||||
"command": "workbench.action.quickOpenSelectPrevious",
|
||||
"when": "inQuickOpen"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+n",
|
||||
"command": "extension.vim_ctrl+n",
|
||||
"when": "editorTextFocus && vim.active && vim.use<C-n> && !inDebugRepl || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'SearchInProgressMode' && !inQuickOpen"
|
||||
},
|
||||
{
|
||||
"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' && !inQuickOpen"
|
||||
},
|
||||
|
||||
// sidebar
|
||||
{
|
||||
"key": "j",
|
||||
"command": "list.focusAnyDown",
|
||||
"when": "sideBarFocus && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "k",
|
||||
"command": "list.focusAnyUp",
|
||||
"when": "sideBarFocus && !inputFocus"
|
||||
},
|
||||
|
||||
// Navigation
|
||||
{
|
||||
"key": "ctrl+h",
|
||||
@@ -176,7 +215,7 @@
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "c",
|
||||
"key": "y",
|
||||
"command": "filesExplorer.copy",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||
},
|
||||
@@ -353,4 +392,4 @@
|
||||
// "command": "selectPrevSuggestion",
|
||||
// "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
|
||||
// },
|
||||
]
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user