Allow searches in context menu

This commit is contained in:
qianlifeng
2015-02-07 16:53:33 +08:00
parent 998eecb94d
commit 82d30c6e74
24 changed files with 2103 additions and 221 deletions

View File

@@ -11,13 +11,13 @@ namespace Wox.Plugin.Everything
{
public class ContextMenuStorage : JsonStrorage<ContextMenuStorage>
{
[JsonProperty]
public List<ContextMenu> ContextMenus = new List<ContextMenu>();
[JsonProperty] public List<ContextMenu> ContextMenus = new List<ContextMenu>();
[JsonProperty]
public int MaxSearchCount { get; set; }
public IPublicAPI API { get; set; }
protected override string ConfigName
{
get { return "EverythingContextMenu"; }
@@ -28,20 +28,14 @@ namespace Wox.Plugin.Everything
get { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); }
}
protected override void OnAfterLoad(ContextMenuStorage obj)
{
}
protected override ContextMenuStorage LoadDefault()
{
ContextMenus = new List<ContextMenu>()
{
new ContextMenu()
{
Name = "Open Containing Folder",
Command = "explorer.exe",
Argument = " /select,\"{path}\"",
ImagePath ="Images\\folder.png"
}
};
MaxSearchCount = 100;
Save();
return this;
}
}
@@ -60,4 +54,4 @@ namespace Wox.Plugin.Everything
[JsonProperty]
public string ImagePath { get; set; }
}
}
}