From 6a5509bc80c8314e1bf2d54aea5c43e3312d7ca6 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Tue, 16 Aug 2022 18:51:03 -0400 Subject: [PATCH] Add customized editor path --- Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index f499274a9..cdd15fd3d 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -248,7 +248,7 @@ namespace Flow.Launcher.Plugin.Explorer private Result CreateOpenWithEditorResult(SearchResult record) { - string editorPath = "Notepad.exe"; // TODO add the ability to create a custom editor + string editorPath = Settings.EditorPath; var name = Context.API.GetTranslation("plugin_explorer_openwitheditor") + " " + Path.GetFileNameWithoutExtension(editorPath); @@ -265,7 +265,7 @@ namespace Flow.Launcher.Plugin.Explorer } catch (Exception e) { - var message = $"Failed to open editor for file at {record.FullPath}"; + var message = $"Failed to open editor for file at {record.FullPath} with Editor {Path.GetFileNameWithoutExtension(editorPath)} at {editorPath}"; LogException(message, e); Context.API.ShowMsgError(message); return false;