diff --git a/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml b/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml
index 59939b0835..ba98b17cb7 100644
--- a/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml
+++ b/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml
@@ -7,8 +7,20 @@
Loaded="View_Loaded"
d:DesignHeight="300" d:DesignWidth="300">
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs b/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs
index 5a9ad5fb9e..4377df2921 100644
--- a/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs
+++ b/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs
@@ -1,5 +1,6 @@
using System.Windows;
using System.Windows.Controls;
+using Microsoft.Win32;
namespace Wox.Plugin.Everything
{
@@ -26,6 +27,23 @@ namespace Wox.Plugin.Everything
{
_settings.UseLocationAsWorkingDir = false;
};
+
+ EditorPath.Content = _settings.EditorPath;
+ }
+
+ private void EditorPath_Clicked(object sender, RoutedEventArgs e)
+ {
+ OpenFileDialog openFileDialog = new OpenFileDialog();
+ openFileDialog.Filter = "Executable File(*.exe)| *.exe";
+ if (!string.IsNullOrEmpty(_settings.EditorPath))
+ openFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(_settings.EditorPath);
+
+ if (openFileDialog.ShowDialog() == true)
+ {
+ _settings.EditorPath = openFileDialog.FileName;
+ }
+
+ EditorPath.Content = _settings.EditorPath;
}
}
}
diff --git a/Plugins/Wox.Plugin.Everything/Languages/de.xaml b/Plugins/Wox.Plugin.Everything/Languages/de.xaml
index 49cde761a8..34b1fcae63 100644
--- a/Plugins/Wox.Plugin.Everything/Languages/de.xaml
+++ b/Plugins/Wox.Plugin.Everything/Languages/de.xaml
@@ -7,6 +7,8 @@
kopiert
Kann {0} nicht starten
Öffne enthaltenden Ordner
+ Openen met {0}
+ Editor pad
Everything
Suche Dateien mit Everything
diff --git a/Plugins/Wox.Plugin.Everything/Languages/en.xaml b/Plugins/Wox.Plugin.Everything/Languages/en.xaml
index 5cd3c559e8..46f8bc5225 100644
--- a/Plugins/Wox.Plugin.Everything/Languages/en.xaml
+++ b/Plugins/Wox.Plugin.Everything/Languages/en.xaml
@@ -7,6 +7,8 @@
Copied
Can’t start {0}
Open parent folder
+ Open with {0}
+ Editor Path
Everything
Search on-disk files using Everything
diff --git a/Plugins/Wox.Plugin.Everything/Languages/pl.xaml b/Plugins/Wox.Plugin.Everything/Languages/pl.xaml
index 3c1bf2a38b..1fe95777e1 100644
--- a/Plugins/Wox.Plugin.Everything/Languages/pl.xaml
+++ b/Plugins/Wox.Plugin.Everything/Languages/pl.xaml
@@ -7,6 +7,8 @@
Skopiowano
Nie udało się uruchomić {0}
Otwórz folder nadrzędny.
+ Otwórz za pomocą {0}
+ Ścieżka edytora
Everything
Szukaj w plikach na dysku używając programu Everything
diff --git a/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml b/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml
index b6baffb359..9e192172f4 100644
--- a/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml
+++ b/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml
@@ -7,7 +7,9 @@
拷贝成功
不能启动 {0}
打开所属文件夹
-
+ 使用{0}打开
+ 编辑器路径
+
Everything
利用 Everything 搜索磁盘文件
diff --git a/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml b/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml
index d5df76bfb7..9f9c0bd88b 100644
--- a/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml
+++ b/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml
@@ -7,6 +7,8 @@
複製成功
無法啟動 {0}
開啟檔案位置
+ 利用{0}啟動
+ 編輯器路径
Everything
利用 Everything 搜尋磁碟上的檔案
diff --git a/Plugins/Wox.Plugin.Everything/Main.cs b/Plugins/Wox.Plugin.Everything/Main.cs
index c08efc85b7..f050154d67 100644
--- a/Plugins/Wox.Plugin.Everything/Main.cs
+++ b/Plugins/Wox.Plugin.Everything/Main.cs
@@ -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;
}
diff --git a/Plugins/Wox.Plugin.Everything/Settings.cs b/Plugins/Wox.Plugin.Everything/Settings.cs
index 3ac52fba54..a2d7069fed 100644
--- a/Plugins/Wox.Plugin.Everything/Settings.cs
+++ b/Plugins/Wox.Plugin.Everything/Settings.cs
@@ -7,6 +7,8 @@ namespace Wox.Plugin.Everything
{
public class Settings
{
+ public string EditorPath { get; set; } = "";
+
public List ContextMenus = new List();
public int MaxSearchCount { get; set; } = 100;