|
|
|
|
|
by 037
391 days ago
|
|
Very interesting, I’ll definitely give it a try! Another approach I recently discovered is an old but beautiful Unix-style tool for renaming files: vidir - edit a directory in your text editor. It’s part of the moreutils suite [1]. You get the list of filenames in your editor – edit them as you like, save, exit, and it renames the files. It uses whatever editor is set in your $EDITOR env var, so it doesn’t have to be vi/vim. You can also pipe in a list of files, e.g. `find . -type f | vidir -`, to edit just the files you want - and you can even change paths (add, rename, remove directories) in the editor to move files around easily. To try it quickly on macOS: `brew install moreutils` [1] https://joeyh.name/code/moreutils/ |
|
I'm not sure how "powerful" vidir is, but I recently found this functionality in yazi [1] and it became one of those "you think you don't need it until you try it" features
[1] https://github.com/sxyazi/yazi