wgrep-mode lets you collect matches from `grep` or `rg` into an editable buffer. Once you’ve finished editing, it propagates the changes back to the original files.