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 ViewEphemeralStateProperties
| 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). |