diff options
| author | kj_sh604 | 2025-10-11 01:52:09 -0400 |
|---|---|---|
| committer | kj_sh604 | 2025-10-11 01:52:09 -0400 |
| commit | 69d5d6a2621e9dc265dd58c59a35248450f03db6 (patch) | |
| tree | a4ac8216de835f9521bd9a7078657c84ed58a3e5 | |
| parent | 140e077e062d40cc32ca5619130cdc4b219b6137 (diff) | |
refactor: add similar keybinds from my Neovim config
| -rw-r--r-- | .config/Code/User/keybindings.json | 98 |
1 files changed, 97 insertions, 1 deletions
diff --git a/.config/Code/User/keybindings.json b/.config/Code/User/keybindings.json index db1b1f2..2e94618 100644 --- a/.config/Code/User/keybindings.json +++ b/.config/Code/User/keybindings.json @@ -17,5 +17,101 @@ "key": "ctrl+alt+l", "command": "-toggle-relative-line-numbers.toggle", "when": "editorTextFocus" + }, + // sidebar (equivalent to my nerdtree nvim config) + { + "key": "alt+shift+n", + "command": "workbench.explorer.fileView.focus", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+n", + "command": "workbench.action.toggleSidebarVisibility", + "when": "vim.active && vim.mode == 'Normal'" + }, + // splits operation + { + "key": "alt+s", + "command": "workbench.action.splitEditorRight", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+d", + "command": "workbench.action.splitEditorDown", + "when": "vim.active && vim.mode == 'Normal'" + }, + // splits navigation + { + "key": "alt+h", + "command": "workbench.action.focusLeftGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+j", + "command": "workbench.action.focusBelowGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+k", + "command": "workbench.action.focusAboveGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+l", + "command": "workbench.action.focusRightGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + // alternate close + { + "key": "alt+q", + "command": "workbench.action.closeActiveEditor", + "when": "vim.active && vim.mode == 'Normal'" + }, + // tab operations + { + "key": "alt+t", + "command": "workbench.action.files.newUntitledFile", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+[", + "command": "workbench.action.previousEditor", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+]", + "command": "workbench.action.nextEditor", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+;", + "command": "workbench.action.moveEditorLeftInGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+'", + "command": "workbench.action.moveEditorRightInGroup", + "when": "vim.active && vim.mode == 'Normal'" + }, + // splits resizing + { + "key": "alt+,", + "command": "workbench.action.decreaseViewWidth", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+.", + "command": "workbench.action.increaseViewWidth", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+-", + "command": "workbench.action.decreaseViewHeight", + "when": "vim.active && vim.mode == 'Normal'" + }, + { + "key": "alt+=", + "command": "workbench.action.increaseViewHeight", + "when": "vim.active && vim.mode == 'Normal'" } -] +]
\ No newline at end of file |
