From 445792741667381a0924d83b5fd5f8cd6f7e29ba Mon Sep 17 00:00:00 2001 From: Ohad Lutzky Date: Mon, 11 Nov 2024 11:38:01 +0000 Subject: [PATCH] Do not use standardKeymap in vim mode (#1145) The standard keymap conflicts with the vim mode, e.g. not allowing arrow keys to move through the vim commandline for `/` and `:` commands. The keys described in https://codemirror.net/docs/ref/#commands.standardKeymap seem to work just fine without it in vim mode. Fixes https://github.com/silverbulletmd/silverbullet/issues/976 --- web/editor_state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/editor_state.ts b/web/editor_state.ts index 189afccd..5541c03e 100644 --- a/web/editor_state.ts +++ b/web/editor_state.ts @@ -367,7 +367,7 @@ export function createKeyBindings(client: Client): Extension { ...createCommandKeyBindings(client), ...createSmartQuoteKeyBindings(client), ...closeBracketsKeymap, - ...standardKeymap, + ...client.ui.viewState.uiOptions.vimMode ? [] : standardKeymap, ...completionKeymap, indentWithTab, ]);