multiple cursors
This commit is contained in:
1 parent
7abea94196
commit
4da270616d
3 files changed
+31
-24
No files matched your search
@@ -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