Favicon of rga

rga

Line-oriented search tool extending ripgrep to find patterns in PDFs, e-books, archives, databases, images, and more. Integrates with fzf and supports custom adapters.

rga (ripgrep-all) is a powerful search tool that extends ripgrep's capabilities to work with multiple file formats beyond plain text. Instead of limiting searches to text files, rga recursively explores archives and matches patterns across PDFs, e-books, Office documents, SQLite databases, video subtitles, images, and compressed files.

The tool comes with built-in adapters for common formats:

  • pandoc: Converts EPUB, ODT, DOCX, FB2, IPYNB, and HTML documents to searchable text
  • poppler: Extracts text from PDF files
  • ffmpeg: Searches video metadata, subtitles, and audio metadata in MKV, MP4, AVI, and audio files
  • sqlite: Converts database contents into readable text format
  • zip/tar/decompress: Recursively searches inside archives without extraction
  • mail: Searches mailbox files and attachments (disabled by default)

Key features include intelligent caching for faster repeated searches, integration with fzf for interactive filtering, customizable adapter priorities, and support for nested archives up to configurable depth. The tool offers both extension-based and mime-type-based file detection for accuracy. Users can create custom adapters for specialized file types, making it ideal for developers, researchers, and professionals who need to search across diverse document collections, databases, and media files efficiently.

Install

Scoop
$ scoop install rga

Features

JSON outputRemote SSH supportScriptable

Media

Pros

4
  • Searches within a wide variety of file types including archives and documents
  • Integrates with fzf for interactive searching
  • Extends ripgrep's powerful search capabilities
  • Supports custom adapters for new file types

Cons

1
  • Requires external dependencies for certain file types (e.g., poppler for PDFs)

Related tools

Share:

Auto-fetched .

Recent releases

Similar to rga

Favicon

 

  
 
Favicon

 

  
 
Favicon