Expand description
Fuzzy text search shared by core and UI surfaces.
Canonical home for the nucleo-matcher-backed query primitives. Both
vtcode-core (slash-command suggestions, tool routing) and vtcode-ui
(modal lists, palettes) delegate here so the matcher behavior cannot drift.
Structs§
- Fuzzy
Query - A reusable fuzzy query that parses the search pattern and allocates its
Matcherand scratch buffer exactly once, then scores many candidates.
Functions§
- fuzzy_
match - Returns true when every term in the query appears as a fuzzy match within the candidate text using nucleo-matcher.
- fuzzy_
score - Returns a score for the fuzzy match between query and candidate using nucleo-matcher. Returns None if no match is found, Some(score) if a match exists.
- fuzzy_
subsequence - Returns true when the characters from
needlecan be found in order withinhaystack(kept for backward compatibility). - normalize_
query - Normalizes a user-provided query by trimming whitespace, collapsing internal spaces, and converting everything to lowercase.