Return only matching file names.
Section: ripgrep (rg)
List files containing matches
bash
bash
rg -l 'TODO|FIXME' src/Explanation
Great when triaging or collecting files to edit.
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 ripgrep (rg)