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§
- Action
Palette - The unified Ctrl+K palette: a
SearchFieldover aSearchResultsView, fed by the focused app’s resource/action tree plus any folded-inSearchProviders. - Argument
Spec - What one step of an argument asks: a heading, a field and what it holds.
- Command
Entry - One row a host feeds the palette: what it reads as, and what choosing it needs.
- Command
Outcome - The result of pressing Enter on a row: its
idplus the free-textargument(onlySomefor rows that asked for one). Drained viaActionPalette::take_outcome. - Make
Action Palette - The action palette’s code, as a program that fetches it hands it over: it makes a palette for the host text’s language.
- Pending
Operation - A palette activation after address resolution and argument collection.
- Query
Field - 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). - Search
Advance - Diagnostics for one bounded progressive-search step.
Enums§
- Argument
Kind - 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-palettesfetched 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.