aboutsummaryrefslogtreecommitdiffstats
path: root/.config/Code
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/Code/User/keybindings.json38
-rw-r--r--.config/Code/User/settings.json26
2 files changed, 59 insertions, 5 deletions
diff --git a/.config/Code/User/keybindings.json b/.config/Code/User/keybindings.json
index 2bad03e..526e1ea 100644
--- a/.config/Code/User/keybindings.json
+++ b/.config/Code/User/keybindings.json
@@ -133,6 +133,22 @@
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
+ // quick open / search in sidebar and copilot chat panel (mirrors vim \\ff \\fg \\fb)
+ {
+ "key": "\\ f f",
+ "command": "workbench.action.quickOpen",
+ "when": "!editorTextFocus && !terminalFocus && !textInputFocus"
+ },
+ {
+ "key": "\\ f g",
+ "command": "workbench.view.search.focus",
+ "when": "!editorTextFocus && !terminalFocus && !textInputFocus"
+ },
+ {
+ "key": "\\ f b",
+ "command": "workbench.action.quickOpenPreviousRecentlyUsedEditor",
+ "when": "!editorTextFocus && !terminalFocus && !textInputFocus"
+ },
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
@@ -268,10 +284,28 @@
},
{
"key": "alt+j",
- "command": "workbench.action.nextEditor"
+ "command": "workbench.action.nextEditorInGroup",
+ "when": "vim.active && vim.mode == 'Normal'"
},
{
"key": "alt+k",
- "command": "workbench.action.previousEditor"
+ "command": "workbench.action.previousEditorInGroup",
+ "when": "vim.active && vim.mode == 'Normal'"
+ },
+ // ai inline completion (mirrors my neovim minuet keymaps)
+ {
+ "key": "alt+a",
+ "command": "editor.action.inlineSuggest.commit",
+ "when": "editorTextFocus && vim.active && vim.mode == 'Insert'"
+ },
+ {
+ "key": "alt+enter",
+ "command": "editor.action.inlineSuggest.commit",
+ "when": "editorTextFocus && vim.active && vim.mode == 'Insert'"
+ },
+ {
+ "key": "alt+shift+enter",
+ "command": "editor.action.inlineSuggest.commit",
+ "when": "editorTextFocus && vim.active && vim.mode == 'Insert'"
}
]
diff --git a/.config/Code/User/settings.json b/.config/Code/User/settings.json
index b4e7c20..af03907 100644
--- a/.config/Code/User/settings.json
+++ b/.config/Code/User/settings.json
@@ -251,11 +251,31 @@
"<C-s>": true,
"<C-p>": true,
"<C-j>": false,
- "<C-i>": false,
"<C-n>": false,
"<C-k>": false,
"<C-w>": false
},
+ "vim.normalModeKeyBindingsNonRecursive": [
+ { "before": ["K"], "commands": ["editor.action.showHover"] },
+ { "before": ["\\", "f", "f"], "commands": ["workbench.action.quickOpen"] },
+ { "before": ["\\", "f", "g"], "commands": ["workbench.view.search.focus"] },
+ { "before": ["\\", "f", "b"], "commands": ["workbench.action.quickOpenPreviousRecentlyUsedEditor"] },
+ { "before": ["\\", "e"], "commands": ["workbench.action.problems.focus"] },
+ { "before": ["\\", "F"], "commands": ["editor.action.formatDocument"] },
+ { "before": ["\\", "o"], "commands": [{"command": "vim.remap", "args": {"commands": [{ "command": ":jumps" }]}}] },
+ { "before": ["\\", "p"], "commands": [{"command": "vim.remap", "args": {"after": ["\"", "+", "P"]}}] },
+ { "before": ["\\", "i"], "commands": ["inlineChat.start"] },
+ { "before": ["g", "r", "n"], "commands": ["editor.action.rename"] },
+ { "before": ["g", "r", "a"], "commands": ["editor.action.quickFix"] },
+ { "before": ["g", "r", "d"], "commands": ["editor.action.revealDefinition"] },
+ { "before": ["g", "r", "t"], "commands": ["editor.action.goToTypeDefinition"] },
+ { "before": ["g", "r", "i"], "commands": ["editor.action.goToImplementation"] },
+ { "before": ["g", "r", "r"], "commands": ["editor.action.goToReferences"] }
+ ],
+ "vim.visualModeKeyBindingsNonRecursive": [
+ { "before": ["g", "r", "a"], "commands": ["editor.action.quickFix"] },
+ { "before": ["\\", "i"], "commands": ["inlineChat.start"] }
+ ],
"vim.history": 1000,
"vim.hlsearch": true,
"vim.incsearch": true,
@@ -277,7 +297,7 @@
"statusBar.debuggingForeground": "#ffffff",
"statusBar.foreground": "#ffffff",
"statusBar.noFolderBackground": "#303030",
- "statusBar.noFolderForeground": "#ffffff",
+ "statusBar.noFolderForeground": "#ffffff"
},
"workbench.editor.decorations.badges": false,
"workbench.editor.decorations.colors": false,
@@ -323,4 +343,4 @@
"files.associations": {
"cgitrc": "shellcheckrc"
}
-} \ No newline at end of file
+}