We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1071f75 commit 5011246Copy full SHA for 5011246
Flow.Launcher/ViewModel/MainViewModel.cs
@@ -354,9 +354,20 @@ private void QueryContextMenu()
354
{
355
var filtered = results.Where
356
(
357
- r => StringMatcher.FuzzySearch(query, r.Title).IsSearchPrecisionScoreMet()
358
- || StringMatcher.FuzzySearch(query, r.SubTitle).IsSearchPrecisionScoreMet()
359
- ).ToList();
+ r =>
+ {
+ var match = StringMatcher.FuzzySearch(query, r.Title);
360
+ if (!match.IsSearchPrecisionScoreMet())
361
362
+ match = StringMatcher.FuzzySearch(query, r.SubTitle);
363
+ }
364
+
365
+ if (!match.IsSearchPrecisionScoreMet()) return false;
366
367
+ r.Score = match.Score;
368
+ return true;
369
370
+ }).ToList();
371
ContextMenu.AddResults(filtered, id);
372
}
373
else
0 commit comments