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
pull/1146/head
Ohad Lutzky 2024-11-11 11:38:01 +00:00 committed by GitHub
parent c52e9e71f0
commit 4457927416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ export function createKeyBindings(client: Client): Extension {
...createCommandKeyBindings(client), ...createCommandKeyBindings(client),
...createSmartQuoteKeyBindings(client), ...createSmartQuoteKeyBindings(client),
...closeBracketsKeymap, ...closeBracketsKeymap,
...standardKeymap, ...client.ui.viewState.uiOptions.vimMode ? [] : standardKeymap,
...completionKeymap, ...completionKeymap,
indentWithTab, indentWithTab,
]); ]);