Opal::Input::Fuzzy
High-performance fuzzy matching algorithm with rune highlighting.
Class methods
Filters and ranks a list of items by fuzzy match score in descending order.
filter_by(query : String, items : Array(T), &key_selector : T -> String) : Array(FuzzyMatch(T)) forall T
Filters and ranks generic items using a custom key selector function.
Computes the Levenshtein edit distance between two strings.
Matches a query string against a target string and computes a score + matched rune indices.