Compare commits

...

2 Commits

Author SHA1 Message Date
0fa11e05a5 vs-code: Add some hotkeys from vim 2024-11-14 22:44:04 -08:00
deacba1fe8 vs-code: Update tmux keybindings 2024-11-14 22:21:44 -08:00
2 changed files with 65 additions and 4 deletions

View File

@ -74,12 +74,35 @@
"command": "-extension.vim_navigateCtrlL",
"when": "editorTextFocus && vim.active && vim.use<C-l> && !inDebugRepl"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && isWeb"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
},
// Editing
{
"key": "shift+k",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "escape",
"command": "workbench.action.closeSidebar",
"when": "sideBarVisible"
},
// Editor pane navigation and management
{
"key": "ctrl+k",
@ -160,7 +183,7 @@
"when": "terminalFocus"
},
{
"key": "ctrl+b up",
"key": "ctrl+k",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0002\u001b[A"
@ -168,7 +191,7 @@
"when": "terminalFocus"
},
{
"key": "ctrl+b down",
"key": "ctrl+j",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0002\u001b[B"
@ -176,7 +199,7 @@
"when": "terminalFocus"
},
{
"key": "ctrl+b left",
"key": "ctrl+h",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0002\u001b[D"
@ -184,7 +207,7 @@
"when": "terminalFocus"
},
{
"key": "ctrl+b right",
"key": "ctrl+l",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0002\u001b[C"
@ -246,5 +269,13 @@
"text": "\u0002\u007a"
},
"when": "terminalFocus"
},
{
"key": "ctrl+b g",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0002\u0067"
},
"when": "terminalFocus"
}
]

View File

@ -93,6 +93,36 @@
"commands": [
"editor.action.rename"
]
},
{
"before": [
"leader",
"s",
"f"
],
"commands": [
"workbench.action.quickOpen"
]
},
{
"before": [
"leader",
"s",
"g"
],
"commands": [
"workbench.action.findInFiles"
]
},
{
"before": [
"leader",
"g",
"r"
],
"commands": [
"editor.action.goToReferences"
]
}
],
// Window