mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #2025 from TheBestPessimist/explorer_path_search_lenience
Path search: be more lenient and ignore extra whitespace around the `>` character
This commit is contained in:
commit
040d4136b3
2 changed files with 3 additions and 5 deletions
|
|
@ -94,8 +94,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything
|
|||
|
||||
var option = new EverythingSearchOption(plainSearch,
|
||||
Settings.SortOption,
|
||||
true,
|
||||
contentSearch,
|
||||
IsContentSearch: true,
|
||||
ContentSearchKeyword: contentSearch,
|
||||
IsFullPathSearch: Settings.EverythingSearchFullPath);
|
||||
|
||||
await foreach (var result in EverythingApi.SearchAsync(option, token))
|
||||
|
|
@ -118,9 +118,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything
|
|||
IsFullPathSearch: Settings.EverythingSearchFullPath);
|
||||
|
||||
await foreach (var result in EverythingApi.SearchAsync(option, token))
|
||||
{
|
||||
yield return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
{
|
||||
directoryResult =
|
||||
Settings.PathEnumerator.EnumerateAsync(
|
||||
query.Search[..recursiveIndicatorIndex],
|
||||
query.Search[..recursiveIndicatorIndex].Trim(),
|
||||
query.Search[(recursiveIndicatorIndex + 1)..],
|
||||
true,
|
||||
token);
|
||||
|
|
|
|||
Loading…
Reference in a new issue