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 VimHistoryControllerProperties
| Property | Type | Description | |
|---|---|---|---|
| historyBuffer | string[] | Everything that has been entered at this prompt, oldest first. | |
| initialPrefix | null | string | The prefix the current walk is filtered by, or null when the walk has not started. | |
| iterator | number | How far back through the history the current walk has reached. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| nextMatch(input, up) | string | undefined | Walk to the next history entry starting with the given input. | |
| pushInput(input) | void | Append an entry to the history. | |
| reset() | void | End the current walk, so the next one starts from the newest entry again. |
Links to this page: