Apply IndexSearchExcludedPaths to Index Search in a unified way

This commit is contained in:
Hongtao Zhang 2022-11-24 17:06:22 -06:00
parent 2da557c2db
commit 786e9427d9
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -99,6 +99,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search
results.Add(ResultManager.CreateResult(query, search));
}
results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
excludedPath => r.SubTitle.StartsWith(excludedPath.Path, StringComparison.OrdinalIgnoreCase)));
return results.ToList();
}