HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rga — Ripgrep wrapper with rich file type searching capabilities. More information: <https://github.com/ph

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrichripgreprgaclifilewithwrapper

Problem

How to use the rga command: Ripgrep wrapper with rich file type searching capabilities. More information: <https://github.com/phiresky/ripgrep-all>.

Solution

rga — Ripgrep wrapper with rich file type searching capabilities. More information: <https://github.com/phiresky/ripgrep-all>.

Search recursively for a pattern in all files in the current directory:
rga {{regex}}


List available adapters:
rga --rga-list-adapters


Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.):
rga --rga-adapters={{adapter1,adapter2}} {{regex}}


Search for a pattern using the mime type instead of the file extension (slower):
rga --rga-accurate {{regex}}


Display help:
rga --help

Code Snippets

Search recursively for a pattern in all files in the current directory

rga {{regex}}

List available adapters

rga --rga-list-adapters

Change which adapters to use (e.g. `ffmpeg`, `pandoc`, `poppler` etc.)

rga --rga-adapters={{adapter1,adapter2}} {{regex}}

Search for a pattern using the mime type instead of the file extension (slower)

rga --rga-accurate {{regex}}

Display help

rga --help

Context

tldr-pages: common/rga

Revisions (0)

No revisions yet.