4 releases
0.1.3 | Aug 5, 2024 |
---|---|
0.1.2 | Jun 12, 2024 |
0.1.1 | Jan 15, 2024 |
0.1.0 | Jan 9, 2024 |
#281 in Database implementations
23 downloads per month
Used in sessionizer
47KB
1K
SLoC
fuzzy-select
A fuzzy select prompt for the terminal.
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.
Usage
Add the following to your Cargo.toml
:
[dependencies]
fuzzy-select = "0.1"
Example
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);
License
fuzzy-select is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
Dependencies
~2.7–7.5MB
~60K SLoC