Skip to content

ViewEphemeralState

Unofficial

Ephemeral state for a view, storing cursor position and focus information.

Import:

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

Signature:

export interface ViewEphemeralState

Properties

PropertyTypeDescription
cursor?EditorRangeOrCaretCursor position or selection range in the editor.
focusbooleanWhether the view should receive focus.
focusOnMobilebooleanWhether the view should receive focus on mobile (may show keyboard).