1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Resolves #9981: Fix Vim keymap error with beta editor (#10049)

This commit is contained in:
Radith Samarakoon 2024-03-06 19:43:57 +05:30 committed by GitHub
parent 9d17ab429d
commit c40682f16f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import { html } from '@codemirror/lang-html';
import { defaultKeymap, emacsStyleKeymap } from '@codemirror/commands';
import { vim } from '@replit/codemirror-vim';
import { indentUnit } from '@codemirror/language';
import { Prec } from '@codemirror/state';
const configFromSettings = (settings: EditorSettings) => {
const languageExtension = (() => {
@ -56,7 +57,7 @@ const configFromSettings = (settings: EditorSettings) => {
}
if (settings.keymap === EditorKeymap.Vim) {
extensions.push(vim());
extensions.push(Prec.high(vim()));
} else if (settings.keymap === EditorKeymap.Emacs) {
extensions.push(keymap.of(emacsStyleKeymap));
}

View File

@ -91,3 +91,4 @@ activatable
titlewrapper
notyf
Notyf
Prec