Groups picker-related fields from EditorState.
Tracks the current picker instance, the source module providing candidates, the buffer index to restore on cancel, and the action-menu overlay state.
Summary
Types
Action menu state: {actions, selected_index} or nil when closed.
Async loading status for sources that fetch candidates in the background.
Functions
Returns true if a picker is currently open.
Returns a picker state with updated source context.
Updates the inner MingaEditor.UI.Picker instance.
Types
@type load_status() :: :ready | :loading | {:error, String.t()}
Async loading status for sources that fetch candidates in the background.
@type t() :: %MingaEditor.State.Picker{ action_menu: action_menu(), context: map() | nil, layout: MingaEditor.UI.Picker.Source.layout(), load_status: load_status(), mode_prefix: String.t(), original_source: module() | nil, picker: MingaEditor.UI.Picker.t() | nil, restore: non_neg_integer() | nil, restore_theme: MingaEditor.UI.Theme.t() | nil, source: module() | nil }
Functions
Returns true if a picker is currently open.
Returns a picker state with updated source context.
@spec update_picker(t(), MingaEditor.UI.Picker.t()) :: t()
Updates the inner MingaEditor.UI.Picker instance.