Open With Editor (#2261)

This commit is contained in:
Kanglai Qian
2018-12-25 13:17:35 +08:00
committed by 蝦米
parent 4b0532b072
commit ab1efb0749
9 changed files with 59 additions and 4 deletions

View File

@@ -126,6 +126,19 @@ namespace Wox.Plugin.Everything
};
defaultContextMenus.Add(openFolderContextMenu);
string editorPath = string.IsNullOrEmpty(_settings.EditorPath) ? "notepad.exe" : _settings.EditorPath;
ContextMenu openWithEditorContextMenu = new ContextMenu
{
Name = string.Format(_context.API.GetTranslation("wox_plugin_everything_open_with_editor"), Path.GetFileNameWithoutExtension(editorPath)),
Command = editorPath,
Argument = " \"{path}\"",
ImagePath = editorPath
};
defaultContextMenus.Add(openWithEditorContextMenu);
return defaultContextMenus;
}