fix(tui): prioritize exact fuzzy matches

This commit is contained in:
Armin Ronacher
2026-05-04 20:24:13 +02:00
parent 6b18cdbac1
commit 1bc640e53a
2 changed files with 11 additions and 0 deletions

View File

@@ -60,6 +60,10 @@ export function fuzzyMatch(query: string, text: string): FuzzyMatch {
return { matches: false, score: 0 };
}
if (normalizedQuery === textLower) {
score -= 100;
}
return { matches: true, score };
};