change QuickFolderAccess behaviour to continue with index search

Even if QuickAccessFolders results matched still continue to do fIles and folders search before returning the results.

This behaviour caters situation where user has a temp location in quick folder access list but still wants to search for temp folder in other locations
This commit is contained in:
Jeremy Wu 2020-08-25 21:36:26 +10:00
parent e38b57d872
commit 0a4f7c0c06

View file

@ -38,8 +38,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
if (string.IsNullOrEmpty(querySearch))
return results;
if (quickFolderLinks.Count > 0)
results.AddRange(quickFolderLinks);
if (IsFileContentSearch(query.ActionKeyword))
return WindowsIndexFileContentSearch(query, querySearch);
@ -53,7 +53,11 @@ namespace Flow.Launcher.Plugin.Explorer.Search
var isEnvironmentVariablePath = querySearch.Substring(1).Contains("%\\");
if (!FilesFolders.IsLocationPathString(querySearch) && !isEnvironmentVariablePath)
return WindowsIndexFilesAndFoldersSearch(query, querySearch);
{
results.AddRange(WindowsIndexFilesAndFoldersSearch(query, querySearch));
return results;
}
var locationPath = querySearch;