From bbcef8eb098f7dc4b1b7bcb2c3a1707aa28d8c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 27 Sep 2026 23:43:44 +0200 Subject: [PATCH] lint more --- client/components/codeEditor/extensions/customKeyMaps.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/components/codeEditor/extensions/customKeyMaps.js b/client/components/codeEditor/extensions/customKeyMaps.js index a0f4ce031..74a36fc9d 100644 --- a/client/components/codeEditor/extensions/customKeyMaps.js +++ b/client/components/codeEditor/extensions/customKeyMaps.js @@ -259,7 +259,7 @@ const newBreak = (type)=>(view)=>forEachSelection(view, (state, range)=>{ }); export const generalKeymap = Prec.high(keymap.of([ - { key: 'Tab', run: insertTab }, //runs indentMore if multiple lines selected in a single selection + { key: 'Tab', run: insertTab }, { key: 'Shift-Tab', run: indentLess }, { key: 'Mod-z', run: undo }, //it may be unnecessary { key: 'Mod-Shift-z', run: redo }, @@ -273,7 +273,6 @@ export const cssKeymap = Prec.highest(keymap.of([ ])); export const markdownKeymap = Prec.highest(keymap.of([ - { key: 'Mod-b', run: wrapSelection('**', '**') }, // makeBold { key: 'Mod-i', run: wrapSelection('*', '*') }, // makeItalic { key: 'Mod-u', run: wrapSelection('', '') }, // makeUnderline @@ -285,7 +284,7 @@ export const markdownKeymap = Prec.highest(keymap.of([ { key: 'Mod-m', run: wrapSelection('{{', '}}') }, { key: 'Shift-Mod-m', run: wrapSelection('{{\n', '\n}}') }, { key: 'Mod-/', run: wrapSelection('') }, - { key: 'Mod-Shift-k', run: makeLink }, + { key: 'Mod-Shift-k', run: makeLink }, { key: 'Mod-Shift-u', run: makeList('- ') }, { key: 'Mod-Shift-o', run: makeList('1. ') }, { key: 'Shift-Mod-1', run: makeHeader(1) },