ripgrep
by
BurntSushi

Description: ripgrep recursively searches directories for a regex pattern while respecting your gitignore

View BurntSushi/ripgrep on GitHub ↗

Summary Information

Updated 27 minutes ago
Added to GitGenius on May 5th, 2026
Created on March 11th, 2016
Open Issues & Pull Requests: 188 (+0)
Number of forks: 2,554
Total Stargazers: 63,658 (+2)
Total Subscribers: 281 (+0)

Issue Activity (beta)

Open issues: 55
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 729 days
Stale 30+ days: 43
Stale 90+ days: 16

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 4

Top labels

  • wontfix (50)
  • bug (34)
  • enhancement (30)
  • rollup (27)
  • question (25)
  • invalid (23)
  • duplicate (16)
  • help wanted (9)

Most active issues this week

Detailed Description

ripgrep, often referred to as "rg," is a high-performance, line-oriented search tool designed to recursively search directories for regular expression (regex) patterns. Its primary purpose is to provide fast and efficient text searching capabilities, especially for codebases and large file trees, while respecting ignore files such as .gitignore by default. This means ripgrep automatically skips files and directories that are meant to be ignored by version control or other ignore mechanisms, as well as hidden and binary files, unless explicitly instructed otherwise.

ripgrep is written in Rust and leverages Rust’s regex engine, which utilizes finite automata, SIMD instructions, and aggressive literal optimizations to achieve exceptional search speeds. The tool is cross-platform, offering first-class support and precompiled binaries for Windows, macOS, and Linux. It is positioned as a modern alternative to established search tools like grep, The Silver Searcher (ag), ack, and git-grep, often outperforming them in benchmarks, especially for recursive and Unicode-aware searches.

Key features of ripgrep include: - Recursive directory search with automatic filtering based on .gitignore, .ignore, and .rgignore files. - Fast performance, even with full Unicode support enabled by default. - Flexible file type filtering, allowing users to include or exclude specific file types using built-in or custom rules. - Support for searching compressed files (brotli, bzip2, gzip, lz4, lzma, xz, zstandard) with a dedicated flag. - Optional use of the PCRE2 regex engine for advanced regex features like look-around and backreferences, which are not supported by the default engine. - Multiline search capabilities, context display, color highlighting, and the ability to search multiple patterns at once. - Rudimentary support for search-and-replace operations directly in the output. - Support for various text encodings beyond UTF-8, including UTF-16, latin-1, GBK, EUC-JP, and Shift_JIS, with automatic detection for some encodings. - Arbitrary input preprocessing filters, enabling integration with tools for extracting text from PDFs, decompressing less common formats, decrypting files, or performing automatic encoding detection. - Configuration via a user-editable configuration file for persistent custom settings.

ripgrep is designed to be both user-friendly and highly configurable, with extensive documentation, a user guide, and a FAQ to assist users in leveraging its full capabilities. It supports shell completions and can be integrated into various development workflows. The tool is available through a wide range of package managers across different operating systems, making installation straightforward for most users.

While ripgrep aims to cover the majority of use cases served by other search tools, it may not be suitable for users who require strict POSIX compliance or need a tool that is universally available on all systems by default. However, for most developers and power users, ripgrep offers a compelling combination of speed, feature richness, and ease of use, making it a popular choice for searching code and text files efficiently.

ripgrep
by
BurntSushiBurntSushi/ripgrep

Repository Details

Fetching additional details & charts...