Skip to content

Commit

Permalink
Fix exclude path check for index search
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriousRaptor committed Sep 8, 2023
1 parent 910c5f2 commit ec58939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public static string ReturnPreviousDirectoryIfIncompleteString(string path)
}

/// <summary>
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>.
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>. Equal paths are not considered to be contained by default.
/// From https://stackoverflow.com/a/66877016
/// </summary>
/// <param name="parentPath">Parent path</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ when ActionKeywordMatch(query, Settings.ActionKeyword.IndexSearchActionKeyword)
}

results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle)));
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, true)));

return results.ToList();
}
Expand Down

0 comments on commit ec58939

Please sign in to comment.