fix(keybindings/quick-input): disable vim up/down keybindings

This commit is contained in:
Jim Myhrberg
2025-07-10 09:15:14 +01:00
parent 2632a29fe0
commit 8962accf81

View File

@@ -346,6 +346,28 @@
},
//
// ===========================================================================
// MARK: Quick Input
// ===========================================================================
//
// Quick input uses vim keybindings (ctrl+j/ctrl+k) by default. I specifically
// use Emacs keybindings (ctrl+n/ctrl+p for next/previous), so here we disable
// the default vim keybindings. This lets ctrl+k for example kill to end of
// line, which I use frequently.
//
// There's no need to map ctrl+n/ctrl+p to next/previous quick input item
// because we cover that via Karabiner-Elements.
//
{ // Disable default next quick input item keybinding.
"key": "ctrl+j",
"command": "-quickInput.next",
"when": "inQuickInput && quickInputType == 'quickPick'"
},
{ // Disable default previous quick input item keybinding.
"key": "ctrl+k",
"command": "-quickInput.previous",
"when": "inQuickInput && quickInputType == 'quickPick'"
},
// ===========================================================================
// MARK: Move Active Editor Group
// ===========================================================================
//