Skip to main content

Module update

Module update 

Source
Expand description

update(model, msg) -> effects (doc 34, section 4): the whole behavior of the interface as a function of one input at a time. It never blocks and never touches the terminal or the network; the calls it wants made come out as Effects.

Functions§

dispatch
Runs an action of the keymap, from a key or from the command palette.
fuzzy
A subsequence match, ignoring case: drn finds Drain the node.
palette_entries
The commands of the palette: every action that has a help text, plus a jump to each tab.
palette_matches
The palette entries that match a query, in either the current language or English (TUI-HLP-02). Those that contain the text come before those that only have its letters in order.
run
Sends an action’s call; the screen is busy until the reply comes.
scope_of
The scope whose keys apply on the screen being shown.
update