fix action keyword when more than one query term is typed

This commit is contained in:
Jeremy 2021-05-10 20:15:33 +10:00
parent 0577549a43
commit 5ccf4c5694
3 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,11 @@ namespace Flow.Launcher.Plugin.PluginIndicator
public List<Result> Query(Query query)
{
// if query contains more than one word, eg. github tips
// user has decided to type something else rather than wanting to see the available action keywords
if (query.Terms.Length > 1)
return new List<Result>();
var results = from keyword in PluginManager.NonGlobalPlugins.Keys
where keyword.StartsWith(query.Terms[0])
let metadata = PluginManager.NonGlobalPlugins[keyword].Metadata

View file

@ -4,7 +4,7 @@
"Name": "Plugin Indicator",
"Description": "Provide plugin actionword suggestion",
"Author": "qianlifeng",
"Version": "1.1.2",
"Version": "1.1.3",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.PluginIndicator.dll",

View file

@ -214,7 +214,6 @@ namespace Flow.Launcher.Plugin.PluginsManager
}
};
var results = resultsForUpdate
.Select(x =>
new Result