diff --git a/Plugins/Wox.Plugin.Folder/ContextMenuLoader.cs b/Plugins/Wox.Plugin.Folder/ContextMenuLoader.cs index 05e47dd524..130fd7007e 100644 --- a/Plugins/Wox.Plugin.Folder/ContextMenuLoader.cs +++ b/Plugins/Wox.Plugin.Folder/ContextMenuLoader.cs @@ -5,6 +5,7 @@ using System.IO; using System.Threading.Tasks; using System.Windows; using Wox.Infrastructure.Logger; +using Wox.Infrastructure.Image; using Wox.Plugin.SharedCommands; namespace Wox.Plugin.Folder @@ -33,8 +34,8 @@ namespace Wox.Plugin.Folder var fileOrFolder = (record.Type == ResultType.File) ? "file" : "folder"; contextMenus.Add(new Result { - Title = "Copy Path", - SubTitle = $"Copy the path of {fileOrFolder} into the clipboard", + Title = "Copy path", + SubTitle = $"Copy the current {fileOrFolder} path to clipboard", Action = (context) => { try @@ -50,13 +51,13 @@ namespace Wox.Plugin.Folder return false; } }, - IcoPath = icoPath + IcoPath = Main.CopyImagePath }); contextMenus.Add(new Result { - Title = "Copy", - SubTitle = $"Copy the {fileOrFolder} to the clipboard", + Title = $"Copy {fileOrFolder}", + SubTitle = $"Copy the {fileOrFolder} to clipboard", Action = (context) => { try @@ -79,7 +80,8 @@ namespace Wox.Plugin.Folder if (record.Type == ResultType.File || record.Type == ResultType.Folder) contextMenus.Add(new Result { - Title = "Delete", + Title = $"Delete {fileOrFolder}", + SubTitle = $"Delete the selected {fileOrFolder}", Action = (context) => { try @@ -99,7 +101,7 @@ namespace Wox.Plugin.Folder return true; }, - IcoPath = icoPath + IcoPath = Main.DeleteFileFolderImagePath }); if (record.Type == ResultType.File && CanRunAsDifferentUser(record.FullPath)) diff --git a/Plugins/Wox.Plugin.Folder/Images/deletefilefolder.png b/Plugins/Wox.Plugin.Folder/Images/deletefilefolder.png new file mode 100644 index 0000000000..024cc92915 Binary files /dev/null and b/Plugins/Wox.Plugin.Folder/Images/deletefilefolder.png differ diff --git a/Plugins/Wox.Plugin.Folder/Main.cs b/Plugins/Wox.Plugin.Folder/Main.cs index 4fff0d40ca..d6b4a86654 100644 --- a/Plugins/Wox.Plugin.Folder/Main.cs +++ b/Plugins/Wox.Plugin.Folder/Main.cs @@ -14,7 +14,8 @@ namespace Wox.Plugin.Folder { public const string FolderImagePath = "Images\\folder.png"; public const string FileImagePath = "Images\\file.png"; - + public const string DeleteFileFolderImagePath = "Images\\deletefilefolder.png"; + public const string CopyImagePath = "Images\\copy.png"; private static List _driverNames; private PluginInitContext _context; diff --git a/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj b/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj index daccbbf883..35573c9ca6 100644 --- a/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj +++ b/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj @@ -81,6 +81,9 @@ PreserveNewest + + Always + PreserveNewest