feat: add directory exclusion feature to search#346
Conversation
Added support for excluding specific directories from search results via new --exclude parameter. Users can now provide comma-separated paths to skip during searching. This improves search performance by avoiding unnecessary directories like /tmp or .cache folders. The implementation includes: 1. New CLI option --exclude in dfm-searcher 2. SemanticSearcher API extension for excluded paths 3. Integration with underlying search engines 4. Documentation updates with examples 5. Backward compatible with older Qt versions Log: Added --exclude option to skip specified directories during search Influence: 1. Test exclusion with various path formats (absolute, relative, with spaces) 2. Verify search performance in directories containing excluded paths 3. Check semantic search exclusion behavior 4. Test combinations with other filters (time, size) 5. Verify JSON output includes excluded paths information feat: 新增搜索目录排除功能 新增通过--exclude参数排除特定目录的功能。用户可通过逗号分隔的路径列表跳 过特定目录搜索,提高搜索性能(特别是跳过/tmp或.cache等无关目录) 实现包括: 1. dfm-searcher新增--exclude命令行选项 2. 扩展SemanticSearcher API支持排除路径 3. 底层搜索引擎集成 4. 文档更新并添加示例 5. 保持对旧版Qt的兼容性 Log: 新增--exclude选项可跳过指定目录的搜索 Influence: 1. 测试不同路径格式的排除功能(绝对路径、相对路径、含空格路径) 2. 验证包含排除路径的目录中的搜索性能 3. 检查语义搜索的排除行为 4. 测试与其他过滤器(时间、大小)的组合使用 5. 验证JSON输出是否包含排除路径信息
There was a problem hiding this comment.
Sorry @Johnson-zs, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Johnson-zs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review★ 总体评分:65分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 在 searchoptions.h 中
class SearchOptions {
// ...
public:
void setSearchExcludedPaths(const QStringList &paths);
QStringList searchExcludedPaths() const;
private:
QStringList m_excludedPaths;
};
// 在 searchoptions.cpp 中
void SearchOptions::setSearchExcludedPaths(const QStringList &paths)
{
m_excludedPaths = paths;
}
QStringList SearchOptions::searchExcludedPaths() const
{
return m_excludedPaths;
} |
|
@Johnson-zs: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
接口是存在的 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Added support for excluding specific directories from search results
via new --exclude parameter. Users can now provide comma-separated paths
to skip during searching. This improves search performance by avoiding
unnecessary directories like /tmp or .cache folders.
The implementation includes:
Log: Added --exclude option to skip specified directories during search
Influence:
spaces)
feat: 新增搜索目录排除功能
新增通过--exclude参数排除特定目录的功能。用户可通过逗号分隔的路径列表跳
过特定目录搜索,提高搜索性能(特别是跳过/tmp或.cache等无关目录)
实现包括:
Log: 新增--exclude选项可跳过指定目录的搜索
Influence: