聪明发现
smart-find的Python项目详细描述
智能查找
智能查找使访问 找到格雷普。
用法
使用-help
选项显示智能查找用法。
$ smart-find -help Usage: smart-find -help - print this help -contains (-c) - grep for string in found files -ignore-case (-i) - ignore case when greping -iname (-in) - ignore case of filenames -save-config - write the default config into /Users/barry/Library/Preferences/smart-find.json -debug - print the find command line -<int> - limit find to a max depth of <int>
配置
smart find遵循macos和linux xdg的约定来查找配置文件。
您可以在smart-find -help
输出中看到默认配置文件路径
- macos-
~/Library/Preferences/smart-find.json
- Linux-
~/.config/smart-find.json
使用smart-find -save-config
创建默认配置文件
配置选项:
默认配置为:
{"folders_to_prune":[".svn",".git",".hg"],"files_to_prune":["*~"]}
支持以下项目:
- 文件夹修剪是将被忽略的文件夹列表
- files_to_prune是将被忽略的文件模式列表