Expand description
Terminal user interface for Yuru.
The TUI provides fzf-like navigation, multi-select, expected keys, a small supported binding subset, and source-span-aware match highlighting.
Structs§
- KeyBinding
- A key binding and the action it triggers.
- TuiOptions
- Configuration for an interactive TUI session.
- TuiRgb
- RGB color used by the TUI style options.
- TuiState
- Mutable query, cursor, selection, and marking state.
- TuiStyle
- Optional colors for TUI rendering.
Enums§
- Binding
Action - Action assigned to a key binding.
- Candidate
Stream Message - Message sent to a streaming TUI session.
- Image
Preview Protocol - Terminal graphics protocol used for image previews.
- Preview
Command - Preview source for the selected candidate.
- Selection
Target - What the selection points at, independently of where that lands in a result list.
- TuiAction
- State transition used by the TUI event loop.
- TuiLayout
- Vertical arrangement for prompt, results, and preview.
- TuiOutcome
- Result returned by an interactive TUI session.
Functions§
- run_
interactive - Runs the TUI over a fixed candidate slice.
- run_
interactive_ streaming - Runs the TUI while candidates are received from a stream.