Skip to main content

Module vim

Module vim 

Source
Expand description

Vim-style prompt editing engine.

App-owned module: relocated from oxicode-vtui so the vim key-decision logic lives with the CLI that drives it. The composer’s editable text lives in oxicode_textarea::TextArea; this engine mutates it via the Editor trait (implemented by InputEditor in main_loop.rs).

Structs§

HandleKeyOutcome
Result of routing a single key through the Vim engine.
VimState

Traits§

Editor
Minimal text-editor surface required by the Vim engine.

Functions§

handle_key
Apply a single key event to the Vim state and editor surface.
next_char_boundary
prev_char_boundary