pipe-rename
takes a list of files as input, opens your $EDITOR of choice, then
renames those files accordingly.
cargo install pipe-rename
This will install the renamer
binary.
Usage is simple, just pipe a list of files into renamer
. This will open your
$EDITOR (or vim, if not set), and once your editor exits it will detect which
files were renamed:
ls | renamer
You can also supply filenames as positional arguments. To rename txt files in the current directory:
renamer *.txt
The default behavior is to rename files, but you can override this. If you want
to run git mv old new
on each rename, you can do something like this:
ls | renamer --rename-command "git mv"
Takes a list of files and renames/moves them by piping them through an external editor
USAGE:
renamer [OPTIONS] [FILES]...
ARGS:
<FILES>...
OPTIONS:
-c, --rename-command <RENAME_COMMAND> Optionally set a custom rename command, like 'git mv'
-f, --force Overwrite existing files
-h, --help Print help information
-p, --pretty-diff Prettify diffs
-V, --version Print version information
-y, --yes Answer all prompts with yes
Marcus Buffett 🤔 💻 |
Robin Krahl 🤔 💻 🐛 |
Max Timkovich 💻 |
Benoit de Chezelles 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!