From 877ad53eadf455d528e42fbde7e96c91e75d98a4 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 8 Feb 2015 00:06:22 +0800 Subject: [PATCH] fix a plugin query issue --- Plugins/Wox.Plugin.Everything/plugin.json | 2 +- Wox.Core/Plugin/PluginManager.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Wox.Plugin.Everything/plugin.json b/Plugins/Wox.Plugin.Everything/plugin.json index 8eb78934eb..0f7418f956 100644 --- a/Plugins/Wox.Plugin.Everything/plugin.json +++ b/Plugins/Wox.Plugin.Everything/plugin.json @@ -1,6 +1,6 @@ { "ID":"D2D2C23B084D411DB66FE0C79D6C2A6E", - "ActionKeyword":"*", + "ActionKeyword":"f", "Name":"Everything", "Description":"Search Everything", "Author":"qianlifeng,orzfly", diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs index 75cd0203a0..b681463f47 100644 --- a/Wox.Core/Plugin/PluginManager.cs +++ b/Wox.Core/Plugin/PluginManager.cs @@ -248,6 +248,9 @@ namespace Wox.Core.Plugin internal static PluginPair GetActionKeywordPlugin(Query query) { + //if a query doesn't contain at least one space, it should not be a action keword plugin query + if (!query.RawQuery.Contains(" ")) return null; + PluginPair actionKeywordPluginPair = AllPlugins.FirstOrDefault(o => o.Metadata.ActionKeyword == query.GetActionKeyword()); if (actionKeywordPluginPair != null) {