CodeMirrorEditorOperation
Unofficial
The batch of work an editor is in the middle of. Nested operations share one of these, and the editor only reacts to what happened once the outermost one ends.
Import:
import type { CodeMirrorEditorOperation } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface CodeMirrorEditorOperationProperties
| Property | Type | Description | |
|---|---|---|---|
| $d | number | How deeply operations are currently nested. The operation ends when this reaches zero. | |
| changes? | ChangeSet | The document changes made so far during this operation, used to map positions taken before them. | |
| cursorActivity? | boolean | Whether the cursor moved during this operation. | |
| deletedText? | string | The text deleted during this operation. | |
| isVimOp? | boolean | Whether this operation was started by the Vim layer. | |
| lastChange? | unknown | The most recent change made during this operation. |
Links to this page: