Replace, Preprocess, and Encodings/Preview and select candidates interactively

Pipe results into a fuzzy finder before editing.

Section: Replacement previews

Preview and select candidates interactively

bash
bash
rg --line-number --no-heading 'TODO' . | fzf
Explanation

ripgrep plus fzf is a classic workflow for interactive navigation and cleanup.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Replacement previews
Preview a simple replacement
Show what matched lines would look like after substitution.
OpenIn sheetbashsame section
Use capture groups in replacements
Reuse matched text in the replacement output.
OpenIn sheetbashsame section
Print replaced fragments only
Combine `-o` and `--replace` to extract transformed matches.
OpenIn sheetbashsame section
Preview advanced regex replacements
Use PCRE2 pattern features with replacement preview.
OpenIn sheetbashsame section
Search compressed files
Enable searching in common compressed formats.
OpenIn sheetbash1 tag match
Search a UTF-16LE file
Decode a file using a specific encoding.
OpenIn sheetbash1 tag match