3 releases

0.1.2 Jun 12, 2024
0.1.1 Jan 15, 2024
0.1.0 Jan 9, 2024

#2451 in Command line utilities

Download history 5/week @ 2024-03-10 37/week @ 2024-03-31 1/week @ 2024-04-07 1/week @ 2024-05-19 17/week @ 2024-06-02 159/week @ 2024-06-09 29/week @ 2024-06-16 18/week @ 2024-06-23

223 downloads per month
Used in sessionizer

MIT/Apache

47KB
1K SLoC

fuzzy-select CI Status Crates.io Docs License: MIT OR Apache-2.0 Rust Version: 1.75.0

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:


Dependencies

~3–8.5MB
~64K SLoC