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§
- Editor
State - Full editor state — the single Rust value the binary hands to the renderer each frame.
- Operator
Pending - The zenmai machine. A ZST marker; the reducer is [
Self::step]. The(Action, u32)event/effect pair is the action and its repetition count. - Plugin
Host - 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§
- Lazy
Trigger - A lazy-load trigger — the runtime-native projection of
escriba_plugin::ActivationTrigger(the binary parses the caixa’s:ativar-emstrings and registers these).Startupplugins are applied eagerly by the binary, never registered here. - OpState
- Operator-pending state.
Resting= normal;Awaiting { op, count }= an operator key was pressed (withcount, default 1) and the next motion will be operated over.