Skip to content

VimHistoryController

Unofficial

The history behind one prompt — the search prompt or the Ex prompt — that the up and down arrows walk through.

Import:

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

Signature:

export interface VimHistoryController

Properties

PropertyTypeDescription
historyBufferstring[]Everything that has been entered at this prompt, oldest first.
initialPrefixnull | stringThe prefix the current walk is filtered by, or null when the walk has not started.
iteratornumberHow far back through the history the current walk has reached.

Methods

MethodReturnsDescription
nextMatch(input, up)string | undefinedWalk to the next history entry starting with the given input.
pushInput(input)voidAppend an entry to the history.
reset()voidEnd the current walk, so the next one starts from the newest entry again.

Links to this page: