mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-28 23:08:12 +00:00
multiple cursors
This commit is contained in:
@@ -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)=>{
|
||||
|
||||
Reference in New Issue
Block a user