Editing In The Dired Buffer With Occur

I ran across this Toot—or whatever Mastodon calls it—in Sacha’s weekly Emacs News:

Even though it’s sort of old news at this point, it’s worth calling attention to. The idea is to use occur to narrow down the files in a Dired listing and then invoke the occur edit function to change the names of those files.

You can do the same thing from within Dired only but I like how the two-step process narrows down the files you’re concerned with and avoids errors. It’s a nice tip and worth taking a look at.

This entry was posted in General and tagged . Bookmark the permalink.