File Search — fd + ripgrep 快速文件搜索
版本: 1.0.0 | Slug:
file-search| 难度: ⭐
📖 简介
使用 fd(文件名搜索)和 rg(ripgrep,文件内容搜索)进行超快速文件和内容检索。
📦 安装
安装工具依赖
🔧 核心用法
fd — 文件名搜索
rg — 文件内容搜索
💡 实用组合
搜索特定文件中的内容
替换文本(rg + sed)
📊 fd vs rg 对比
❓ 常见问题
Q: fd 命令不存在?
Debian/Ubuntu 上可能安装为 fdfind,运行 alias fd=fdfind 或使用 fdfind。
Q: rg 搜索不到 node_modules 中的内容?
默认遵循 .gitignore,使用 rg --no-ignore 强制搜索。

