pipe-rename-1.5.0 is not a library.
pipe-rename
pipe-rename
takes a list of files as input, opens your $EDITOR of choice, then
renames those files accordingly.
Installation
cargo install pipe-rename
This will install the renamer
binary.
Usage
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:
|
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
to run git mv old new
on each rename, you can do something like this:
|
Helptext
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
Contributors ✨
This project follows the all-contributors specification. Contributions of any kind welcome!