pipe-rename 1.4.0

Rename your files using your favorite text editor
pipe-rename-1.4.0 is not a library.

pipe-rename

Crates.io

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:

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"

Helptext

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

Contributors ✨

This project follows the all-contributors specification. Contributions of any kind welcome!