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

View File

@ -93,6 +93,36 @@
"commands": [ "commands": [
"editor.action.rename" "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 // Window