Skip to main content

Crate escriba_runtime

Crate escriba_runtime 

Source
Expand description

escriba-runtime — editor state machine.

Wraps everything: BufferSet, ModalState, Keymap, CommandRegistry, Layout. Exposes tick(input) which advances one frame’s worth of state given one input event. Pure — no rendering, no I/O beyond file save/load through BufferSet.

Structs§

EditorState
Full editor state — the single Rust value the binary hands to the renderer each frame.
OperatorPending
The zenmai machine. A ZST marker; the reducer is [Self::step]. The (Action, u32) event/effect pair is the action and its repetition count.
PluginHost
Holds the editor’s registered lazy plugins and decides which to activate when a trigger fires. The returned entry sources are applied by EditorState (which owns the keymap / command registry / option store).

Enums§

LazyTrigger
A lazy-load trigger — the runtime-native projection of escriba_plugin::ActivationTrigger (the binary parses the caixa’s :ativar-em strings and registers these). Startup plugins are applied eagerly by the binary, never registered here.
OpState
Operator-pending state. Resting = normal; Awaiting { op, count } = an operator key was pressed (with count, default 1) and the next motion will be operated over.