- Making Open Directory subtitle fixed, and the title as the current directory.
This commit is contained in:
parent
92bbd83b33
commit
d4da98bae5
1 changed files with 2 additions and 5 deletions
|
@ -266,17 +266,14 @@ namespace Wox.Plugin.Folder
|
|||
|
||||
private static Result CreateOpenCurrentFolderResult(string incompleteName, string search)
|
||||
{
|
||||
var firstResult = "Open current directory";
|
||||
if (incompleteName.Length > 0)
|
||||
firstResult = "Open " + search;
|
||||
var firstResult = "Open " + search;
|
||||
|
||||
var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last();
|
||||
|
||||
return new Result
|
||||
{
|
||||
Title = firstResult,
|
||||
SubTitle = $"Use > to search within {folderName}, " +
|
||||
$"* to search for file extensions in {folderName} or both >* to combine the search.",
|
||||
SubTitle = $"Use > to search within the directory. Use * to search for file extensions. Or use both >*.",
|
||||
IcoPath = search,
|
||||
Score = 500,
|
||||
Action = c =>
|
||||
|
|
Loading…
Reference in a new issue