Some tools arrive like a quiet revolution — you don’t notice the old world ending until the new one is already humming under your hands.
我用了很多年的 grep,像一辆锈了的旧摩托,能跑,却总在每个路口跟你较劲。搜点什么,得先拼一长串 --exclude-dir,把 .git、node_modules、dist 一个个请出去,参数列得比诗行还长,still feels笨拙。
仔细想想
话说回来直到遇见 ripgrep。它最温柔的地方,是懂得替你沉默——默认递归,自动读 .gitignore,那些噪音它替你滤掉,再不用跟排除规则较劲。Rust 写的底子,并行搜索,大仓库里也是秒出结果,像黑暗隧道里突然亮起的一束工业冷光,干脆,利落。坦白讲彩色高亮、按文件类型匹配,配上 fzf 做交互查找,简直是给这把刀装了个人体工学柄,握感刚好。有一说一
grep 没做错什么,只是时代轻轻推了它一把。sounds good,不是吗。