0.1.0 |
|
---|
#32 in #fuzzy-matching
17KB
303 lines
fz
fz
is a minimal library for CLI fuzzy matching. The provided interface is similar to that of fzf and skim but currently the use of colors isn't supported. Under the hood crossterm is used for the cross-platform interface and fuzzy-matcher provides the algorithm used for scoring matches.
Usage
Click to show Cargo.toml.
[dependencies]
fz = "0.1.0"
use fz::select;
use std::io::stdout;
let selected = select(stdout(), &["first", "second", "third"]).unwrap();
License
This project is licensed under the MIT License.
Dependencies
~2MB
~39K SLoC