add prompt press ctrl to open folder directly to folder results

This commit is contained in:
Jeremy Wu 2020-06-04 19:06:03 +10:00
parent b90664d760
commit e34bcbd1ba
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo
if (fileSystemInfo is System.IO.DirectoryInfo)
{
folderList.Add(ResultManager.CreateFolderResult(fileSystemInfo.Name, fileSystemInfo.FullName, fileSystemInfo.FullName, query, true, false));
folderList.Add(ResultManager.CreateFolderResult(fileSystemInfo.Name, Constants.DefaultFolderSubtitleString, fileSystemInfo.FullName, query, true, false));
}
else
{

View file

@ -71,7 +71,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
private Result CreateResult(string filename, string path, string fileType, Query query)
{
if (fileType == "Directory")
return ResultManager.CreateFolderResult(filename, path, path, query, true, true);
return ResultManager.CreateFolderResult(filename, Constants.DefaultFolderSubtitleString, path, query, true, true);
else
{
return ResultManager.CreateFileResult(path, query, true, true);