Skip to content

Commit ec58939

Browse files
Fix exclude path check for index search
1 parent 910c5f2 commit ec58939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public static string ReturnPreviousDirectoryIfIncompleteString(string path)
263263
}
264264

265265
/// <summary>
266-
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>.
266+
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>. Equal paths are not considered to be contained by default.
267267
/// From https://stackoverflow.com/a/66877016
268268
/// </summary>
269269
/// <param name="parentPath">Parent path</param>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ when ActionKeywordMatch(query, Settings.ActionKeyword.IndexSearchActionKeyword)
123123
}
124124

125125
results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
126-
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle)));
126+
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, true)));
127127

128128
return results.ToList();
129129
}

0 commit comments

Comments
 (0)