small fixes

- ignore upper case when determine index search
- add open with different user image
- add subtitle text for context menu containing folder
This commit is contained in:
Jeremy Wu 2020-06-08 14:47:57 +10:00
parent 5d696bd3ab
commit 6befd6cbb1
5 changed files with 11 additions and 4 deletions

View file

@ -136,7 +136,7 @@ namespace Flow.Launcher.Plugin.Explorer
return true;
},
IcoPath = "Images/user.png"
IcoPath = Constants.DifferentUserIconImagePath
});
}
@ -148,6 +148,7 @@ namespace Flow.Launcher.Plugin.Explorer
return new Result
{
Title = "Open containing folder",
SubTitle = "Opens the location that contains the file or folder",
Action = _ =>
{
try

View file

@ -51,7 +51,11 @@
<None Include="Images\folder.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</None>
<None Include="Images\user.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

@ -13,6 +13,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
internal const string IndexImagePath = "Images\\index.png";
internal const string ExcludeFromIndexImagePath = "Images\\excludeindexpath.png";
internal const string ExplorerIconImagePath = "Images\\explorer.png";
internal const string DifferentUserIconImagePath = "Images\\user.png";
internal const string DefaultFolderSubtitleString = "Ctrl + Enter to open the directory";

View file

@ -1,4 +1,4 @@
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
using Flow.Launcher.Plugin.SharedCommands;
@ -117,7 +117,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search
return false;
if (settings.IndexSearchExcludedSubdirectoryPaths
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath).StartsWith(x.Path)))
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)
.StartsWith(x.Path, StringComparison.OrdinalIgnoreCase)))
return false;
return indexSearch.PathIsIndexed(locationPath);