All apps/ripgrep

ripgrep

rg

Recursively search files for lines matching a regular expression.

Runs as rg|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 14 fields

Search a directory tree for a pattern with ripgrep. Covers common matching, context and filtering flags only.

Opens the form; the finished command lands at your prompt, unrun
otty gui rg
Search filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Pattern*
string
Files or directories
any
Smart case
-S
Context lines
integer
Include or exclude glob
string
File type
string
TasksEach one presets the form for one job
Search with smart case
patternpathsignore_case_smartglobfile_typecontext
List files containing a match
patternpathsfiles_with_matcheshidden
ParametersOnly these flags are editable in the form
Pattern
string · positional 0
Files or directories
path · positional 1 · repeatable
Smart case
boolean
-S--smart-case
Case sensitive
boolean
-s--case-sensitive
Literal string
boolean
-F--fixed-strings
Whole words only
boolean
-w--word-regexp
Invert match
boolean
-v--invert-match
List matching files only
boolean
-l--files-with-matches
Count matching lines
boolean
-c--count
Context lines
integer
-C--context
Include or exclude glob
string · repeatable
-g--glob
File type
string · repeatable
-t--type
Include hidden files
boolean
--hidden
Ignore .gitignore rules
boolean
--no-ignore
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed rg against its version. A form that does not match your version is not offered.