29 lines
636 B
Markdown
29 lines
636 B
Markdown
# 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
|
|
|
|
1. Index files into .original.edname and .rename.edname (one per line)
|
|
2. Call $EDITOR on .rename.edname
|
|
3. 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`.
|