aboutsummaryrefslogtreecommitdiffstats
path: root/.config/Code/User
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/Code/User/keybindings.json84
-rw-r--r--.config/Code/User/settings.json26
2 files changed, 39 insertions, 71 deletions
diff --git a/.config/Code/User/keybindings.json b/.config/Code/User/keybindings.json
index 020478d..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"
@@ -276,68 +292,6 @@
"command": "workbench.action.previousEditorInGroup",
"when": "vim.active && vim.mode == 'Normal'"
},
- // lsp (mirrors some of my neovim lsp keymaps)
- {
- "key": "shift+k",
- "command": "editor.action.showHover",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- {
- "key": "g r n",
- "command": "editor.action.rename",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- {
- "key": "g r a",
- "command": "editor.action.quickFix",
- "when": "vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorTextFocus"
- },
- {
- "key": "g r d",
- "command": "editor.action.revealDefinition",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- {
- "key": "g r t",
- "command": "editor.action.goToTypeDefinition",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- {
- "key": "g r i",
- "command": "editor.action.goToImplementation",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- {
- "key": "g r r",
- "command": "editor.action.goToReferences",
- "when": "vim.active && vim.mode == 'Normal' && editorTextFocus"
- },
- // leader actions
- {
- "key": "\\ f f",
- "command": "workbench.action.quickOpen",
- "when": "vim.active && vim.mode == 'Normal'"
- },
- {
- "key": "\\ f g",
- "command": "workbench.view.search.focus",
- "when": "vim.active && vim.mode == 'Normal'"
- },
- {
- "key": "\\ f b",
- "command": "workbench.action.quickOpenPreviousRecentlyUsedEditor",
- "when": "vim.active && vim.mode == 'Normal'"
- },
- {
- "key": "\\ e",
- "command": "workbench.action.problems.focus",
- "when": "vim.active && vim.mode == 'Normal'"
- },
- {
- "key": "\\ shift+f",
- "command": "editor.action.formatDocument",
- "when": "vim.active && vim.mode == 'Normal'"
- },
// ai inline completion (mirrors my neovim minuet keymaps)
{
"key": "alt+a",
@@ -353,11 +307,5 @@
"key": "alt+shift+enter",
"command": "editor.action.inlineSuggest.commit",
"when": "editorTextFocus && vim.active && vim.mode == 'Insert'"
- },
- // copilot inline chat (mirrors my neovim opencode keymaps)
- {
- "key": "\\ o",
- "command": "inlineChat.start",
- "when": "vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasNotebookAgent && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasNotebookAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasNotebookInline && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasNotebookInline && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatHasNotebookAgent && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatHasNotebookAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatHasNotebookInline && inlineChatPossible && !config.inlineChat.askInChat && !editorReadonly && !editorSimpleInput && activeEditor == 'workbench.editor.notebook' || vim.active && vim.mode =~ /^(Normal|Visual|VisualLine|VisualBlock)$/ && editorFocus && inlineChatHasEditsAgent && inlineChatHasNotebookInline && inlineChatPossible && !editorReadonly && !editorSimpleInput && !inlineChatFileBelongsToChat && activeEditor == 'workbench.editor.notebook'"
}
]
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
+}