#fuzzy #cli #fuzzy-matching #terminal

yanked fz

A minimal, cross-platform library for CLI fuzzy matching

0.1.0 Apr 14, 2021

#23 in #fuzzy-matching

MIT license

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
~38K SLoC