Skip to main content

Module command

Module command 

Source
Expand description

The command registry.

Every user-visible action is registered here exactly once. The keymap, the : command line, the which-key popup and the help overlay all read this one table, so they cannot drift apart: a command that exists is reachable and discoverable by construction.

Commands carry an Action rather than a function pointer. Dispatch lives in tmprl-tui, which keeps this crate free of any application or terminal types, and makes the match on Action exhaustive, so a new command cannot be silently unhandled.

Structs§

Command
Registry

Enums§

Action
What a command does. tmprl-tui matches on this exhaustively.
PayloadPart
Which payloads a yank takes.