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
Functions
Returns true if a picker is currently open.
Updates the inner MingaEditor.UI.Picker instance.
Types
@type t() :: %MingaEditor.State.Picker{ action_menu: action_menu(), context: map() | nil, layout: MingaEditor.UI.Picker.Source.layout(), 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.
@spec update_picker(t(), MingaEditor.UI.Picker.t()) :: t()
Updates the inner MingaEditor.UI.Picker instance.