multiple cursors

This commit is contained in:
Víctor Losada Hernández committed 2026-03-27 18:50:46 +01:00
1 parent 7abea94196
commit 4da270616d
3 files changed
+31 -24

No files matched your search

+7 -9
View File
@@ -2,15 +2,13 @@
import { keymap } from '@codemirror/view';
import { undo, redo } from '@codemirror/commands';
const insertTabAtCursor = (view) => {
const { from } = view.state.selection.main;
view.dispatch({
changes: { from, insert: ' ' },
selection: { anchor: from + 1 }
});
return true;
const insertTabAtCursor = (view)=>{
const { from } = view.state.selection.main;
view.dispatch({
changes : { from, insert: ' ' },
selection : { anchor: from + 1 }
});
return true;
};
const indentMore = (view)=>{