Skip to main content

Module action_palette

Module action_palette 

Expand description

ActionPalette — the one Ctrl+K surface for a tilo_ui::App.

The resource + action model (tilo_actions) is the foundation: the focused app instance publishes a tree of open ResourceSpecs, each exporting the [ActionSpec]s Ctrl+K offers. An app can also fold in searchable content through SearchProviders, whose hits can address an exported resource action; search providers are discovery-only, never authority, and the host resolves every addressed resource through the owning widget and permission-filters it before activation.

One registry, one renderer, one flow: input is the shared SearchField, results render through SearchResultsView grouped by kind, and an action row resolves to its EncodedAction and dispatch_with_contextes through tilo_actions — the path a remote peer replays — collecting a Prompted action’s argument in the field first. The host (crate::app::App) drains a completed activation with take_operation and take_navigation.

Structs§

ActionPalette
The unified Ctrl+K palette: a SearchField over a SearchResultsView, fed by the focused app’s resource/action tree plus any folded-in SearchProviders.
ArgumentSpec
What one step of an argument asks: a heading, a field and what it holds.
CommandEntry
One row a host feeds the palette: what it reads as, and what choosing it needs.
CommandOutcome
The result of pressing Enter on a row: its id plus the free-text argument (only Some for rows that asked for one). Drained via ActionPalette::take_outcome.
MakeActionPalette
The action palette’s code, as a program that fetches it hands it over: it makes a palette for the host text’s language.
PendingOperation
A palette activation after address resolution and argument collection.
QueryField
The palette’s query field, as text committed from outside the keyboard (an input method’s, or a dictation’s) may write into it.
RowFace
One person in a row’s face stack (CommandRow::faces).
SearchAdvance
Diagnostics for one bounded progressive-search step.

Enums§

ArgumentKind
What an argument step collects.

Constants§

ACTIONS_KIND
The group header for the focused app’s exported actions.

Statics§

ACTION_PALETTE
The action palette’s code: linked, or with lazy-palettes fetched once a window first lays out, ahead of the first prompt or search it shows.

Functions§

builtin_action_palette
The action palette this build links.
list_cap
The tallest a card’s result list grows in area: a little over half its height, up to [LIST_MAX] at the theme’s size, so a card on a tall display shows a longer list than one in a short window.
placement
Where the palette’s card stands in window, the part of the window it belongs to under the window’s bar: its top-left corner and its width. Centred across the window, a little below its top, and never wider than the window, so a palette of an app in a window narrower than the screen stays inside that window. A compact window gives it its whole width less the standard insets, from just under the bar.