0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-28 23:08:12 +00:00

multiple cursors

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

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)=>{