rg-edit - Man Page

Edit ripgrep search results across multiple files

Synopsis

ripgrep-edit <-e|--regexp> <-E|--editor> [-C|--context] [-A|--after-context] [-B|--before-context] [--require-all-files] [--context-separator] [--filename-prefix] [-S|--smart-case] [-i|--ignore-case] [-w|--word-regexp] [-U|--multiline] [--multiline-dotall] [--sort] [--sortr] [-L|--follow] [--dump-on-error] [--gbnf] [-G|--gbnf-control-lines] [-h|--help] [-V|--version] [PATHS]

Description

Edit ripgrep search results across multiple files

Options

-e,  --regexp <REGEXP>

Regex pattern to search for

-E,  --editor <EDITOR>

Editor command

-C,  --context <CONTEXT> [default: 5]

Number of context lines

-A,  --after-context <AFTER_CONTEXT> [default: 0]

Number of lines of context to show after each match

-B,  --before-context <BEFORE_CONTEXT> [default: 0]

Number of lines of context to show before each match

--require-all-files

Require all files in the rg output to be present in the modified file

--context-separator <CONTEXT_SEPARATOR> [default: -- DO NOT DELETE THIS SEPARATOR]

context_separator character

--filename-prefix <FILENAME_PREFIX> [default: -- ]

filename_prefix character

-S,  --smart-case

Smart Case search

-i,  --ignore-case

Ignore case

-w,  --word-regexp

Word regexp

-U,  --multiline

Multiline search

--multiline-dotall

Multiline dotall search

--sort <SORT> [default: none]

Sort results

[possible values: none, path, modified, accessed, created]

--sortr <SORTR> [default: none]

Sort results in reverse

[possible values: none, path, modified, accessed, created]

-L,  --follow

Follow symlinks

--dump-on-error

Dump processed tempfile to stderr on error

--gbnf

Generate GBNF grammar file with context lines

-G,  --gbnf-control-lines <GBNF_CONTROL_LINES> [default: 10]

Generate GBNF grammar from extra control lines

-h,  --help

Print help

-V,  --version

Print version

[PATHS]

Paths to search in

Version

v0.3.8

Info

ripgrep-edit 0.3.8