Skip to content

CodeMirrorAdapterExCommands

Unofficial

Built-in editor commands available through the CodeMirror adapter.

Import:

import type { CodeMirrorAdapterExCommands } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface CodeMirrorAdapterExCommands

Methods

Method Returns Description
cursorCharLeft(editor) void Move the cursor one character to the left.
indentAuto(editor) void Auto-indent the current line or selection.
newlineAndIndent(editor) void Insert a new line and auto-indent.
newlineAndIndentBefore(editor) void Insert a new line before the current line and auto-indent.
redo(editor) void Redo the last undone change.
undo(editor) void Undo the last change.

Links to this page: