Skip to main content

Module action

Module action 

Source
Expand description

Action enum – the dispatch language of the editor.

Phase 5.2: extracted from lattice-ui-tui::app to its own module in lattice-host. Renderer-agnostic by construction (every variant references either lattice-grammar types, lattice-protocol types, lattice-host::chord::KeyChord, or std types). Both lattice-ui-tui and the future lattice-ui-gpui produce Action values via their own keystroke dispatch and feed them into the same host App::apply path.

lattice-ui-tui::app re-exports Action, FindKind, EchoMessage, EchoLevel so existing crate::app::Action call sites continue to resolve unchanged across the move.

Structs§

EchoMessage
Single-line message rendered in the echo area below the mode line (DESIGN.md §5.9.10). Replaced by the next call to App::set_message (no timeout-based fade yet).

Enums§

Action
EchoLevel
Renderer-side display level for echo messages. Mirrors lattice_grammar::EchoLevel (wire-typed) but kept separate so renderers can adopt their own display semantics around the shared wire levels.
FindKind
f / F / t / T direction-and-stop discriminant for the inline find family.