Skip to main content

Module browser

Module browser 

Source
Expand description

DocsBrowser — two-pane ratatui TUI over an embedded markdown tree.

v0.1 ships the state machine + render contract but stops short of a full event loop. The loop wiring (crossterm::event::read + terminal mode management) lands in the v0.2.x CLI dispatch follow-up; for now consumers use DocsBrowser::render to draw a frame and DocsBrowser::handle_key to mutate state so tests and future callers can drive the browser programmatically.

Structs§

DocsBrowser
Browser state. Hold it across frames; pass it to render + the key-event handler.

Enums§

Focus
Which pane currently has focus.
KeyCode
Key code subset the browser cares about. Kept independent of crossterm::event::KeyCode so tests don’t pull crossterm in.
Mode
The input mode — normal navigation or search.