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] [-j|--threads] [--dump-on-error] [--output-size-limit] [--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

-j,  --threads <THREADS> [default: 0]

Number of threads to use

--dump-on-error

Dump processed tempfile to stderr on error

--output-size-limit <OUTPUT_SIZE_LIMIT>

Limit the total size of ripgrep output in bytes (e.g., 1024, 1k, 1m, 1g), if the limit is exceeded exit with code 3

--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.15

Info

ripgrep-edit 0.3.15