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/976pull/1146/head
parent
c52e9e71f0
commit
4457927416
|
@ -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,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue