Continuing on this quest to focus on one tiny little workflow change at a time, so that I can get even better at using Emacs…
One of those packages I installed but never got around to trying out was
all, which lets you interactively edit all lines matching a given regular expression. It’s like an editable occur, sorta.
It turns out that
helm-swoop lets you use
C-c C-e to edit matching lines interactively (so you can use keyboard macros or replace-regexp or whatever). You can type
C-x C-s to save it back to the buffer.
On a related note, I’m still tickled pink every time I use
C-x C-q) to make a Dired buffer editable so that I can batch-rename filenames.