Skip to content

VimMacroModeState

Unofficial

Tracks macro recording and playback — what q starts and @ replays.

Import:

import type { VimMacroModeState } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface VimMacroModeState

Properties

PropertyTypeDescription
isPlayingbooleanWhether a macro is currently being replayed.
isRecordingbooleanWhether keystrokes are currently being recorded into a register.
lastInsertModeChangesVimInsertModeChangesThe insert-mode edits recorded since the last time insert mode was entered.
latestRegisterstring | undefinedThe register being recorded into, or undefined when nothing is being recorded.
onRecordingDone((newVal?: string) => void) | undefinedCloses the recording indicator, or undefined when nothing is being recorded.
replaySearchQueriesstring[]The search queries queued up for the macro currently being replayed.

Methods

MethodReturnsDescription
enterMacroRecordMode(cm, registerName)voidStart recording keystrokes into the given register.
exitMacroRecordMode()voidStop recording and close the recording indicator.

Links to this page: