Skip to content

Commit 1b9a879

Browse files
author
TheBestPessimist
committed
Use EverythingSearchOption flag to set up FullPathSearch instead of hardcoding it
1 parent 2b6c92c commit 1b9a879

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static async IAsyncEnumerable<SearchResult> SearchAsync(EverythingSearchO
152152
EverythingApiDllImport.Everything_SetMax(option.MaxCount);
153153

154154
EverythingApiDllImport.Everything_SetSort(option.SortOption);
155-
EverythingApiDllImport.Everything_SetMatchPath(true);
155+
EverythingApiDllImport.Everything_SetMatchPath(option.IsFullPathSearch);
156156

157157
if (token.IsCancellationRequested) yield break;
158158

Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchOption.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
namespace Flow.Launcher.Plugin.Explorer.Search.Everything
55
{
6-
public record struct EverythingSearchOption(string Keyword,
6+
public record struct EverythingSearchOption(
7+
string Keyword,
78
SortOption SortOption,
8-
bool IsContentSearch = false,
9+
bool IsContentSearch = false,
910
string ContentSearchKeyword = default,
1011
string ParentPath = default,
1112
bool IsRecursive = true,
12-
int Offset = 0,
13-
int MaxCount = 100);
13+
int Offset = 0,
14+
int MaxCount = 100,
15+
bool IsFullPathSearch = true
16+
);
1417
}

0 commit comments

Comments
 (0)