It skips Git-ignored, hidden and binary files by default, reducing noise in code searches. Run rg with a pattern and optional paths to print matching lines. Its own benchmarks report faster searches than several grep-like tools, while noting performance edge cases.
For Developers searching source trees who want less search noise
ripgrep pairs parallel recursive traversal with ignore-aware path filtering, then searches eligible files using regex matchers. Sorted output deliberately disables parallelism so results can be emitted in order.
crates/core/main.rs (search_parallel, files_parallel); crates/ignore/src/walk.rs (WalkParallel, WalkBuilder); README.md (Is it really faster than everything else?)
Command orchestration
Parses modes, coordinates sequential or parallel searching, and reports search statistics.
crates/core/main.rs
Flag definitions
Defines command-line options for patterns, filtering, output, encodings, and search modes.
crates/core/flags/defs.rs
Ignore-aware walker
Traverses directories serially or in parallel while applying ignore and hidden-file rules.
crates/ignore/src/walk.rs
Standard result printer
Formats matches with paths, context, columns, colors, and optional hyperlinks.
crates/printer/src/standard.rs
Generated