make the code more obvious when triggering full quick folder access list

This commit is contained in:
Jeremy Wu 2020-08-25 21:40:17 +10:00
parent 00035f7a52
commit c9c8d0065e

View file

@ -1,4 +1,4 @@
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
using Flow.Launcher.Plugin.SharedCommands;
@ -41,9 +41,12 @@ namespace Flow.Launcher.Plugin.Explorer.Search
if (quickFolderLinks.Count > 0)
results.AddRange(quickFolderLinks);
if (IsFileContentSearch(query.ActionKeyword))
return WindowsIndexFileContentSearch(query, querySearch);
// This allows the user to type the assigned action keyword and only see the list of quick folder links
if (settings.QuickFolderAccessLinks.Count > 0
&& query.ActionKeyword == settings.SearchActionKeyword
&& string.IsNullOrEmpty(query.Search))
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);