|
|
|
|
|
by MrMetric
20 days ago
|
|
I've had to batch-rename files many times over the years. That means: 1. I do it manually over however many minutes. Works if there aren't too many (especially if the pattern is too complex to trivially automate). 2. I make a Python script for it. No way I'm renaming a thousand files by hand. 3. I don't do it. Too much work. The problem lingers forever. Or these days, 4. I make an AI datacenter eat another town's water supply. I've never used Emacs. I tried vi(m) nonconsensually and had to google how to exit. A while later, I tried it intentionally and hkjl navigation didn't work because I use a custom keyboard layout, so I never touched it again. Sublime Text and its many cursors for the win! I'd love a way that isn't miserable to do such a common basic task. |
|
It opens the list of filenames in a given directory (or set of files passed on cmdline) in an editor of your choice, and then you use your editor to rename them; the changes get applied when your editor is closed.