vvv_tui/lib.rs
1//! The interactive interface of `vvv`: modes of panels — search as the hub,
2//! then rename, move, rewrite and history, each with its own layout and keys.
3//!
4//! The surface is [`Tui`]: give it an [`Engine`](vvv_engine::Engine), say which editor `e` opens
5//! and whether to colour, and [`Tui::run`] takes the terminal until the user
6//! quits. Everything else is private and Elm-shaped so it can be tested
7//! without a terminal: `Model` is plain data, `Model::update` is pure and
8//! returns the `Effect`s it wants run, `Worker` runs them against the engine
9//! on its own thread and answers with `Event`s. Mode views render their state
10//! through typed screen callbacks; shared views lay out report rows.
11//! Only [`Tui::run`] touches the terminal — and the editor.
12
13mod action;
14mod error;
15mod input;
16mod keymap;
17mod model;
18mod modes;
19mod overlays;
20mod preferences;
21mod problem;
22mod render;
23mod screen;
24mod tui;
25mod view;
26mod worker;
27
28#[cfg(test)]
29mod fixtures;
30#[cfg(test)]
31mod performance;
32#[cfg(test)]
33mod tests;
34
35pub use error::Error;
36pub use tui::Tui;