Skip to content

ViewEphemeralState

Unofficial

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

Import:

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

Signature:

export interface ViewEphemeralState

Properties

Property Type Description
cursor? EditorRangeOrCaret Cursor position or selection range in the editor.
focus boolean Whether the view should receive focus.
focusOnMobile boolean Whether the view should receive focus on mobile (may show keyboard).