Skip to content

Commit 0a4f7c0

Browse files
committed
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
1 parent e38b57d commit 0a4f7c0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ internal List<Result> Search(Query query)
3838

3939
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
4040

41-
if (string.IsNullOrEmpty(querySearch))
42-
return results;
41+
if (quickFolderLinks.Count > 0)
42+
results.AddRange(quickFolderLinks);
4343

4444
if (IsFileContentSearch(query.ActionKeyword))
4545
return WindowsIndexFileContentSearch(query, querySearch);
@@ -53,7 +53,11 @@ internal List<Result> Search(Query query)
5353
var isEnvironmentVariablePath = querySearch.Substring(1).Contains("%\\");
5454

5555
if (!FilesFolders.IsLocationPathString(querySearch) && !isEnvironmentVariablePath)
56-
return WindowsIndexFilesAndFoldersSearch(query, querySearch);
56+
{
57+
results.AddRange(WindowsIndexFilesAndFoldersSearch(query, querySearch));
58+
59+
return results;
60+
}
5761

5862
var locationPath = querySearch;
5963

0 commit comments

Comments
 (0)