mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add only path string match when lnk programs
This commit is contained in:
parent
22bdbc9367
commit
ad998b1788
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
|
||||
var nameMatchResult = StringMatcher.FuzzySearch(query, Name);
|
||||
var descriptionMatchResult = StringMatcher.FuzzySearch(query, Description);
|
||||
var pathMatchResult = StringMatcher.FuzzySearch(query, Path.GetFileNameWithoutExtension(FullPath));
|
||||
|
||||
var pathMatchResult = new MatchResult(false, 0, new List<int>(), 0);
|
||||
if ((LnkResolvedPath ?? FullPath) != FullPath)
|
||||
pathMatchResult = StringMatcher.FuzzySearch(query, Path.GetFileNameWithoutExtension(FullPath));
|
||||
|
||||
var score = new[] { nameMatchResult.Score, descriptionMatchResult.Score, pathMatchResult.Score }.Max();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue