Crates.io | fuzzy-select |
lib.rs | fuzzy-select |
version | 0.1.3 |
source | src |
created_at | 2024-01-09 18:41:02.291334 |
updated_at | 2024-08-05 20:26:34.92068 |
description | Fuzzy select using Nucleo as matching engine |
homepage | |
repository | https://github.com/knutwalker/fuzzy-select |
max_upload_size | |
id | 1094386 |
size | 65,123 |
This crate is a library for creating a fuzzy select prompt for the terminal. It uses nucleo as its fuzzy matching engine. The prompt is very simple and not very configurable.
Add the following to your Cargo.toml
:
[dependencies]
fuzzy-select = "0.1"
use fuzzy_select::FuzzySelect;
let options = vec!["foo", "bar", "baz"];
let selected = FuzzySelect::new()
.with_prompt("Select something")
.with_options(options)
.select()?;
println!("Selected: {:?}", selected);
fuzzy-select is licensed under either of the following, at your option: