Skip to main content

Module prompt

Module prompt 

Source
Expand description

Headless prompt / input-box primitive (bottom bar, command palette).

Structs§

PromptItem
One selectable row in a palette-style prompt (commands, files, matches).
PromptSpec
How a prompt was opened. Semantics belong to hooks; this is only the view-model a frontend renders.
PromptState
Headless single-line input + item list + history.

Enums§

PromptAction
What PromptState::handle_key decided for a keystroke.
PromptPlacement
Where a frontend should render an open prompt.

Functions§

fuzzy_filter
Filters item labels against query, returning (index, score) pairs sorted by score descending, index ascending.
fuzzy_score
Scores candidate against query as a case-insensitive subsequence.