cdt_view/lib.rs
1//! The picker: a ratatui directory browser whose only output is the path to
2//! cd into. Renders on stderr so stdout can carry that path back to the
3//! calling shell.
4//!
5//! - [`app`] holds the state and resolves what Enter means.
6//! - [`search`] runs queries on a worker thread, off the key loop.
7//! - [`view`] renders it.
8//! - [`run`] owns the terminal and the key table.
9mod app;
10mod run;
11mod search;
12mod view;
13
14pub use run::pick;
15
16pub(crate) type Res<T> = Result<T, Box<dyn std::error::Error>>;