ag Silver Searcher:列出 ignored/searched 个文件
ag Silver Searcher: List ignored/searched files
ag 提供了多种忽略文件的机制(隐藏文件、VCS 忽略文件、.agignore ...)。这些非常有用,但有时这让我想知道我的文件树中的哪些文件实际上被忽略/搜索了。有没有快速检查的方法?
我尝试ag '^'
获取搜索文件列表,但其中不包含 0 字节文件。
如果未提供搜索查询,the -l
option(小写 "L")会列出 ag
:
将搜索的文件
-l --files-with-matches: Only print the names of files containing matches, not the matching lines. An empty query will print all files that would be searched.
ag 提供了多种忽略文件的机制(隐藏文件、VCS 忽略文件、.agignore ...)。这些非常有用,但有时这让我想知道我的文件树中的哪些文件实际上被忽略/搜索了。有没有快速检查的方法?
我尝试ag '^'
获取搜索文件列表,但其中不包含 0 字节文件。
如果未提供搜索查询,the -l
option(小写 "L")会列出 ag
:
-l --files-with-matches: Only print the names of files containing matches, not the matching lines. An empty query will print all files that would be searched.