skimple

Crates.ioskimple
lib.rsskimple
version2.0.1
created_at2026-01-01 01:14:52.177201+00
updated_at2026-01-09 21:24:30.443469+00
descriptionA simple interface for the skim fuzzy-matcher
homepagehttps://github.com/dotzenith/skimple
repositoryhttps://github.com/dotzenith/skimple
max_upload_size
id2015575
size12,941
zenith (dotzenith)

documentation

https://docs.rs/skimple

README

━━━━ ❖ ━━━━

❖ skimple

skimple is a simple interface for skim fuzzy-matcher

❖ Examples

Best Match

use skimple::SkimpleMatcher;

let matcher = SkimpleMatcher::default();
let haystack = ["Mort", "Sourcery", "Wyrd Sisters", "Pyramids", "Guards! Guards!"];
let needle = "gards";

let result = matcher.fuzzy_best(&haystack, &needle);
assert_eq!(result, Ok("Guards! Guards!"));

All Matches

use skimple::SkimpleMatcher;

let matcher = SkimpleMatcher::default();
let haystack = ["Mort", "Sourcery", "Wyrd Sisters", "Pyramids", "Guards! Guards!"];
let needle = "yr";

let result = matcher.fuzzy_all(&haystack, &needle);
assert_eq!(result, Ok(vec!["Wyrd Sisters", "Pyramids"]));

❖ What's New?

2.0.1 - Add feature to return all matches, and not just the best


Commit count: 7

cargo fmt