Skip to main content

search_fuzzy_matcher

Function search_fuzzy_matcher 

Source
pub fn search_fuzzy_matcher() -> &'static ArinaeMatcher
Expand description

Typo-tolerant fuzzy matcher for explicit DSL %quick searches.

%quick is the opt-in “be clever” path, so it intentionally accepts a broader set of typo-like matches than shell completion does.

§Examples

use osp_cli::core::fuzzy::search_fuzzy_matcher;
use skim::fuzzy_matcher::FuzzyMatcher;

assert!(search_fuzzy_matcher()
    .fuzzy_match("doctor --mreg", "doctr mreg")
    .is_some());