Skip to content

Commit 5ccf4c5

Browse files
committed
fix action keyword when more than one query term is typed
1 parent 0577549 commit 5ccf4c5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Plugins/Flow.Launcher.Plugin.PluginIndicator/Main.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ public class Main : IPlugin, IPluginI18n
1010

1111
public List<Result> Query(Query query)
1212
{
13+
// if query contains more than one word, eg. github tips
14+
// user has decided to type something else rather than wanting to see the available action keywords
15+
if (query.Terms.Length > 1)
16+
return new List<Result>();
17+
1318
var results = from keyword in PluginManager.NonGlobalPlugins.Keys
1419
where keyword.StartsWith(query.Terms[0])
1520
let metadata = PluginManager.NonGlobalPlugins[keyword].Metadata

Plugins/Flow.Launcher.Plugin.PluginIndicator/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Plugin Indicator",
55
"Description": "Provide plugin actionword suggestion",
66
"Author": "qianlifeng",
7-
"Version": "1.1.2",
7+
"Version": "1.1.3",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.PluginIndicator.dll",

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ where existingPlugin.Metadata.Version.CompareTo(pluginFromManifest.Version) <
214214
}
215215
};
216216

217-
218217
var results = resultsForUpdate
219218
.Select(x =>
220219
new Result

0 commit comments

Comments
 (0)