cdt-view 0.5.4

ratatui view and key loop for the cdt directory picker.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The picker: a ratatui directory browser whose only output is the path to
//! cd into. Renders on stderr so stdout can carry that path back to the
//! calling shell.
//!
//! - [`app`] holds the state and resolves what Enter means.
//! - [`search`] runs queries on a worker thread, off the key loop.
//! - [`view`] renders it.
//! - [`run`] owns the terminal and the key table.
mod app;
mod run;
mod search;
mod view;

pub use run::pick;

pub(crate) type Res<T> = Result<T, Box<dyn std::error::Error>>;