Skip to content

Commit c9c8d00

Browse files
committed
make the code more obvious when triggering full quick folder access list
1 parent 00035f7 commit c9c8d00

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
1+
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
22
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
33
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
44
using Flow.Launcher.Plugin.SharedCommands;
@@ -41,9 +41,12 @@ internal List<Result> Search(Query query)
4141

4242
if (quickFolderLinks.Count > 0)
4343
results.AddRange(quickFolderLinks);
44-
45-
if (IsFileContentSearch(query.ActionKeyword))
46-
return WindowsIndexFileContentSearch(query, querySearch);
44+
45+
// This allows the user to type the assigned action keyword and only see the list of quick folder links
46+
if (settings.QuickFolderAccessLinks.Count > 0
47+
&& query.ActionKeyword == settings.SearchActionKeyword
48+
&& string.IsNullOrEmpty(query.Search))
49+
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
4750

4851
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);
4952

0 commit comments

Comments
 (0)