Documentation
¶
Overview ¶
Package picker is a vertical, type-to-filter select list for modal choices (workflow transitions today; assignees, labels and facet values next). Typing narrows the list fzf-style through the shared input substrate, up/down move the cursor, and the caller reads Selected() on its own submit key — the picker never consumes enter or esc.
primer was considered first per the project rule: its picker package is a settings grid (label rows with horizontal choice cycling) and its pick package is a blocking huh form that owns the terminal — neither embeds in a running Bubble Tea program as a select list, so this stays in-tree on the existing input.Line substrate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
Item is one selectable entry: Label is shown, Value is what the caller receives (e.g. a transition ID behind its display name).
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the picker state. Construct with New.
func New ¶
New builds a picker over items with the cursor on the first entry and an empty (all-matching) filter.
func (Model) Selected ¶
Selected returns the item under the cursor; ok is false when nothing matches the filter (or the picker is empty).