Skip to main content

Module ui

Module ui 

Source
Expand description

Rendering: a single-column tree list using only the terminal’s ANSI palette.

Structs§

Palette
The terminal’s default foreground and background, queried at startup.

Functions§

draw
Render the current mode into area. In a modal picker the tree is hidden; otherwise the tree list is drawn and the viewport height recorded for paging.
render_jump
Render the jump picker into area: a /query prompt with a right-aligned matched/total counter, a divider line, then the ranked results with matched characters highlighted and the selected row barred. Knows nothing about where area is; full-screen is just the identity placement above.