mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Add IExclusiveSearch interface [WIP]
This commit is contained in:
@@ -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(">");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user