Skip to main content

run_picker

Function run_picker 

Source
pub fn run_picker(
    title: &str,
    sections: Vec<Section>,
    actions: Vec<PickerAction<'_>>,
) -> Result<PickerOutcome>
Expand description

Run an interactive sectioned multi-select picker.

Sections are rendered with bold headers; items below them have checkboxes. Navigation skips headers automatically. Optional actions bind keys to caller-defined handlers that receive the terminal for full-screen takeover.