← All open source projects

ripgrep

BurntSushi/ripgrep

ripgrep is a fast command-line search tool that respects ignore files by default.

Forks 2,600
Author BurntSushi
Language Rust
License Unlicense
Synced 2026-06-20

What it is

ripgrep, or `rg`, is a command-line tool for searching text and regular expressions in files. It recursively walks directories, respects `.gitignore` by default, skips hidden and binary files, and tries to return useful results without noise.

Developers like it because searching code is a daily operation. Faster search means less time spent navigating mechanically.

Why it feels fast

ripgrep is written in Rust and uses fast regular expression libraries. The other important part is behavior: it makes project-aware assumptions and avoids directories that usually do not matter for code search.

By respecting ignore files by default, `rg` searches what developers usually consider part of the project. Those filters can be relaxed when deeper search is needed.

Searching a project

This example shows a typical use: find class names or strings in a Laravel project without manually scanning generated and ignored files.

Language: Bash
rg "OpenSourceProject" app resources routes
rg --type php "localizedContent" app
rg -n "github_stars" resources/lang resources/views

What is inside

The repository includes the tool, documentation, comparisons with other tools, installation instructions, tests, and build material. Default behavior receives a lot of attention.

ripgrep supports file types, line numbers, surrounding context, file-name-only output, and search with or without ignore rules.

Strengths

The main strength is speed combined with useful defaults. Many tools are fast in special cases, but `rg` is helpful immediately in a normal repository.

It also integrates well with editors, scripts, and development processes. ripgrep is often the invisible search engine inside modern tools.

Limits

ripgrep is a search tool, not a code understanding system. It finds matches but does not replace type-aware navigation, IDE refactoring, or static analysis.

Regular expressions need care. A broad query creates noise; a narrow one misses results. Good search starts with the right pattern.

Who it fits

ripgrep is useful for almost any developer working with repositories, logs, configuration, or text data.

It pays off especially quickly in large projects, where teams search more often and verify code facts before making changes.