Skip to content

Commit 9fdf220

Browse files
committed
trigger general search only when action keywords match
1 parent d74a635 commit 9fdf220

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ when ActionKeywordMatch(query, Settings.ActionKeyword.FileContentSearchActionKey
8787

8888
break;
8989

90-
case false:
90+
case false
91+
when ActionKeywordMatch(query, Settings.ActionKeyword.IndexSearchActionKeyword)
92+
|| ActionKeywordMatch(query, Settings.ActionKeyword.SearchActionKeyword):
93+
9194
searchResults = Settings.IndexProvider.SearchAsync(query.Search, token);
9295

9396
break;

0 commit comments

Comments
 (0)