636 B
636 B
edname: EDitor reNAME
Allows you to rename files using your favorite $EDITOR.
Usage
edname: rename files using $EDITOR.
usage:
edname <dir or files>
to rename
edname --undo
to undo the last rename (as well as possible)
Operation
- Index files into .original.edname and .rename.edname (one per line)
- Call $EDITOR on .rename.edname
- Rename each file from .original.edname to the name specified on its corresponding line in .rename.edname
Safety
Files are never overwritten. If a conflict exists, that file will be left as-is.
edname also allows undoing the last rename using edname --undo.