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
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:
The default behavior is to rename files, but you can override this. If you want
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/removes them, by piping them through an external editor USAGE: renamer [FLAGS] [OPTIONS] [FILES]... FLAGS: -h, --help Prints help information -V, --version Prints version information -y, --yes Answer all prompts with yes OPTIONS: -c, --rename-command <COMMAND> Optionally set a custom rename command, like 'git mv' ARGS: <FILES>... The files to rename
This project follows the all-contributors specification. Contributions of any kind welcome!