Skip to content

Commit 6befd6c

Browse files
committed
small fixes
- ignore upper case when determine index search - add open with different user image - add subtitle text for context menu containing folder
1 parent 5d696bd commit 6befd6c

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
136136

137137
return true;
138138
},
139-
IcoPath = "Images/user.png"
139+
IcoPath = Constants.DifferentUserIconImagePath
140140
});
141141
}
142142

@@ -148,6 +148,7 @@ private Result CreateOpenContainingFolderResult(SearchResult record)
148148
return new Result
149149
{
150150
Title = "Open containing folder",
151+
SubTitle = "Opens the location that contains the file or folder",
151152
Action = _ =>
152153
{
153154
try

Plugins/Flow.Launcher.Plugin.Explorer/Flow.Launcher.Plugin.Explorer.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151

5252
<None Include="Images\folder.png">
5353
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
54-
</None>
54+
</None>
55+
56+
<None Include="Images\user.png">
57+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
58+
</None>
5559
</ItemGroup>
5660

5761
<ItemGroup>
64.1 KB
Loading

Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ internal static class Constants
1313
internal const string IndexImagePath = "Images\\index.png";
1414
internal const string ExcludeFromIndexImagePath = "Images\\excludeindexpath.png";
1515
internal const string ExplorerIconImagePath = "Images\\explorer.png";
16+
internal const string DifferentUserIconImagePath = "Images\\user.png";
1617

1718
internal const string DefaultFolderSubtitleString = "Ctrl + Enter to open the directory";
1819

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
1+
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
22
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
33
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
44
using Flow.Launcher.Plugin.SharedCommands;
@@ -117,7 +117,8 @@ private bool UseWindowsIndexForDirectorySearch(string locationPath)
117117
return false;
118118

119119
if (settings.IndexSearchExcludedSubdirectoryPaths
120-
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath).StartsWith(x.Path)))
120+
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)
121+
.StartsWith(x.Path, StringComparison.OrdinalIgnoreCase)))
121122
return false;
122123

123124
return indexSearch.PathIsIndexed(locationPath);

0 commit comments

Comments
 (0)