Skip to main content

Crate hjkl_vim

Crate hjkl_vim 

Source

Re-exports§

pub use cmd::EngineCmd;
pub use count::CountAccumulator;
pub use operator::OperatorKind;
pub use pending::Key;
pub use pending::Outcome;
pub use pending::PendingState;
pub use pending::step;

Modules§

cmd
count
Digit-prefix count accumulator for the vim grammar.
insert
Phase 6.6d: insert-mode FSM body relocated from hjkl-engine::vim.
motion
normal
Phase 6.6e: normal-mode FSM body relocated from hjkl-engine::vim.
operator
pending
search_prompt

Enums§

Mode
Mode discriminator for the hjkl editor stack.
MotionKind
Cursor motion identity for the hjkl keymap layer.

Functions§

dispatch_input
Drive the vim FSM with one hjkl_engine::Input.
feed_input
Drive the vim FSM with a hjkl_engine::PlannedInput. Translates the planned input to engine hjkl_engine::Input, dispatches through dispatch_input, and emits cursor-shape changes.
handle_key
Drive the vim FSM with a crossterm hjkl_engine::KeyEvent. Decodes the event to hjkl_engine::Input and dispatches through dispatch_input. Emits the cursor-shape change after the FSM returns.