From 5aa15ef7315d13fdcf4bd58f26af8e049fbdefba Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 9 Dec 2019 21:27:33 +1100 Subject: [PATCH] Add tips string to folder subtitle --- Plugins/Wox.Plugin.Folder/Main.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/Wox.Plugin.Folder/Main.cs b/Plugins/Wox.Plugin.Folder/Main.cs index 73725d35f7..2c8cf2703d 100644 --- a/Plugins/Wox.Plugin.Folder/Main.cs +++ b/Plugins/Wox.Plugin.Folder/Main.cs @@ -118,7 +118,7 @@ namespace Wox.Plugin.Folder private List QueryInternal_Directory_Exists(Query query) { - var search = query.Search.ToLower(); + var search = query.Search; var results = new List(); var hasSpecial = search.IndexOfAny(_specialSearchChars) >= 0; string incompleteName = ""; @@ -213,12 +213,17 @@ namespace Wox.Plugin.Folder private static Result CreateOpenCurrentFolderResult(string incompleteName, string search) { - string firstResult = "Open current directory"; + var firstResult = "Open current directory"; if (incompleteName.Length > 0) firstResult = "Open " + search; + + var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); + return new Result { Title = firstResult, + SubTitle = $"Use > to search files and subfolders within {folderName}, " + + $"* to search for file extensions in {folderName} or both >* to combine the search", IcoPath = search, Score = 500, Action = c =>