From 69d5d6a2621e9dc265dd58c59a35248450f03db6 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Sat, 11 Oct 2025 01:52:09 -0400 Subject: refactor: add similar keybinds from my Neovim config --- .config/Code/User/keybindings.json | 98 +++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3