Skip to main content

Module palette

Module palette 

Source
Expand description

The command palette: ⌘K over the frame’s whole vocabulary (docs/cad-ui-spec.md §9).

Search, not filter: it is transient, it dismisses on a pick, and Escape closes it. Filter is the navigator’s and behaves oppositely on both counts, which is why the two never share a control.

What a query reaches, how it scores and what order the answers come back in is [blockworx_kernel::palette]’s — the same nucleo-matcher ranking the desktop’s rows are drawn from. This is the dialog, the listbox and the keyboard that walks them.

Re-exports§

pub use Palette_completions::Component::Palette;

Structs§

PaletteProps
Properties for the Palette component.

Constants§

FIELD 🔒
HEADING 🔒

Functions§

Palette
Props
annotated 🔒
The typeable spelling on the right of a row, and the key that does the same thing where the table binds one — so a row cannot promise a key nothing binds.
as_action 🔒
What a row other than a command dispatches. A command goes through Event::Command instead, so the call it reaches resolves it against the session as it then stands rather than against the set the rows were drawn from.
stable 🔒
A row’s own handle, for a script and for a snapshot: a command by its stable name, anything else by what it is and which one.