Skip to main content

oxicode/tui_vt/vim/
mod.rs

1//! Vim-style prompt editing engine.
2//!
3//! App-owned module: relocated from `oxicode-vtui` so the vim key-decision
4//! logic lives with the CLI that drives it. The composer's editable text
5//! lives in `oxicode_textarea::TextArea`; this engine mutates it via the
6//! `Editor` trait (implemented by `InputEditor` in `main_loop.rs`).
7
8mod engine;
9mod text;
10mod types;
11
12pub use engine::{Editor, HandleKeyOutcome, handle_key};
13pub use text::{next_char_boundary, prev_char_boundary};
14pub use types::VimState;