From 8962accf8115d2f57531f1656a85cf78fb481a70 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 10 Jul 2025 09:15:14 +0100 Subject: [PATCH] fix(keybindings/quick-input): disable vim up/down keybindings --- keybindings.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/keybindings.json b/keybindings.json index 97106e3..b368b1c 100644 --- a/keybindings.json +++ b/keybindings.json @@ -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 // =========================================================================== //