fd
A simple, fast, user-friendly alternative to find.
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.
ripgrep (rg) searches directories recursively, skips ignored and binary files by default, and is usually much faster than grep -r. It powers search in VS Code.
grep -r, ack, ag
Always. Especially in large repos or monorepos.
Respects .gitignore, .ignore and .rgignore, and skips hidden and binary files automatically.
A finite-automata regex engine with SIMD acceleration, searching directories in parallel.
-t ts, -T js or --type-list, plus glob filters with -g '!dist/**'.
Case-smart search (-S), whole words (-w), multiline (-U) and optional PCRE2 (-P) for lookarounds.
-r shows what a replacement would look like (it doesn't edit files).
--json for tooling, and --vimgrep for editors.
ripgrep combines Rust's regex engine (which avoids backtracking), literal optimisations that use SIMD instructions to skip ahead quickly, memory-mapped or buffered reads chosen per file, and a parallel directory walker that applies ignore rules as it goes. Because it doesn't read files it was told to ignore, a lot of its speed on real projects comes from simply doing less work.
rg 'TODO|FIXME' # search everything not ignored
rg -t ts 'useEffect\(' # only TypeScript files
rg -g '!**/*.test.*' 'fetch\(' # exclude test files
rg -l 'deprecatedThing' # list matching files only
rg -C 3 'panic!' # 3 lines of context
rg -S 'userid' # smart case: insensitive unless you type uppercase
rg -U 'async fn\s+\w+\([^)]*\)\s*->' # multiline patterns
rg --files | rg 'config' # find files by name
rg -uuu 'secret' . # search absolutely everythingRIPGREP_CONFIG_PATH, for example --smart-case and your usual globs.rg -r '$1' 'import (\w+)' -o prints just the captured group, which is handy for quick extraction.-u, -uu or -uuu to search ignored, hidden and binary files.sd, sed or your editor for replacements.brew install ripgrep # or your package manager
rg "TODO" --type ts
rg -l "useEffect" src/ Everywhere by default and POSIX standard, but slower and noisier on code trees.
Fast and git-aware, but only searches tracked files in a repository.
An earlier "grep for code" tool with similar ideas, now largely superseded.
A grep-compatible fast search tool with an interactive TUI.
Other tools that share topics with ripgrep.
A simple, fast, user-friendly alternative to find.
Re-run any command when files change.
A fast terminal UI for git: staging hunks, rebasing and resolving conflicts.