ripgrep
Recursive code search that is fast and respects your .gitignore.
No votes yet. Tried it? Be the first to say.
One vote per person. No account needed.
fd has sensible defaults: it ignores hidden and .gitignored files, uses regex or glob patterns, colours output, and runs searches in parallel.
find . -name "*.ts" -not -path "*/node_modules/*"
You reach for find and have to look up its flags.
fd config finds paths containing "config"; no -name or -iname incantations.
Skips hidden files and anything in .gitignore; case-insensitive unless your pattern has capitals.
Regular expressions by default, and --glob when you'd rather use shell-style patterns.
By extension (-e ts), type (-t f, -t d), size, modification time (--changed-within 2d) and depth.
-x runs a command per result in parallel; -X runs it once with all results.
A parallel directory walk, with coloured output by file type.
fd # list all non-ignored files under here
fd -e md # all Markdown files
fd -t d node_modules -HI # find every node_modules dir (include ignored)
fd '^\.env' -H # dotenv files (hidden)
fd -e ts --changed-within 1d # TypeScript files changed in the last day
fd -g '*.test.ts' src # glob pattern in src/
fd -e png -x convert {} {.}.webp # convert each PNG to WebP in parallel
fd -e log -X rm # delete all log files in one rm callThe placeholders in -x commands are handy: {} is the full path, {.} drops the extension, {/} is the file name and {//} is the parent directory.
Set fd as fzf's file source to get fast, gitignore-aware fuzzy finding:
export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git'sudo apt install fd-find then ln -s $(which fdfind) ~/.local/bin/fd.--exclude (or -E) for one-off ignores without editing .gitignore.find for, with commands you can remember.fdfind because of a name clash; alias it to fd.-H and -I when you need them.brew install fd # or your package manager
fd '\.test\.ts$'
fd -e json -x wc -l Universal and scriptable with powerful predicates, but verbose and slower.
Lists files ripgrep would search; combine with a filter for quick name searches.
Interactive fuzzy finding over file lists, and often fed by fd.
Other tools that share topics with fd.
Recursive code search that is fast and respects your .gitignore.
A smarter cd that learns the directories you use most.
Re-run any command when files change.