Skip to main content

Crate yuru_tui

Crate yuru_tui 

Source
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§

BindingAction
Action assigned to a key binding.
CandidateStreamMessage
Message sent to a streaming TUI session.
ImagePreviewProtocol
Terminal graphics protocol used for image previews.
PreviewCommand
Preview source for the selected candidate.
SelectionTarget
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.