Expand description
§Fuzzypicker
fuzzypicker
is a Rust library for interactive fuzzy searching and selection of items in command-line applications.
§Features
- Fuzzy searching of items based on user input.
- Interactive selection with keyboard and mouse support.
- Designed for integration into Rust-based command-line tools.
§Example
use fuzzypicker::FuzzyPicker;
fn main() {
let items = vec!["rust", "python", "javascript", "java", "c++", "go", "swift"];
let mut picker = FuzzyPicker::new(&items);
if let Ok(Some(selected_language)) = picker.pick() {
println!("Selected language: {}", selected_language);
} else {
println!("No language selected or selection cancelled.");
}
}
Structs§
- Fuzzy
Picker - Struct representing a fuzzy picker for interactive item selection.