Add IExclusiveSearch interface [WIP]

This commit is contained in:
qianlifeng
2015-02-05 18:43:05 +08:00
parent fa53bce27a
commit 7b0a643de3
6 changed files with 83 additions and 4 deletions

View File

@@ -9,11 +9,12 @@ using WindowsInput;
using WindowsInput.Native;
using Wox.Infrastructure;
using Wox.Infrastructure.Hotkey;
using Wox.Plugin.Features;
using Control = System.Windows.Controls.Control;
namespace Wox.Plugin.CMD
{
public class CMD : IPlugin, ISettingProvider, IPluginI18n, IInstantSearch
public class CMD : IPlugin, ISettingProvider, IPluginI18n, IInstantSearch,IExclusiveSearch
{
private PluginInitContext context;
private bool WinRStroked;
@@ -217,5 +218,10 @@ namespace Wox.Plugin.CMD
if (query.StartsWith(">")) return true;
return false;
}
public bool IsExclusiveSearch(Query query)
{
return query.Search.StartsWith(">");
}
}
}