#cli #tool #rename

app pipe-rename

Rename your files using your favorite text editor

9 stable releases

1.3.0 Apr 30, 2021
1.2.0 Apr 28, 2021
1.1.4 Sep 14, 2020
1.1.2 Sep 13, 2020
1.0.1 Sep 11, 2020

#230 in Command line utilities

Download history 9/week @ 2021-01-16 8/week @ 2021-01-23 7/week @ 2021-02-06 22/week @ 2021-02-13 11/week @ 2021-02-20 4/week @ 2021-02-27 2/week @ 2021-03-06 2/week @ 2021-03-13 20/week @ 2021-03-20 16/week @ 2021-03-27 16/week @ 2021-04-03 17/week @ 2021-04-10 31/week @ 2021-04-17 41/week @ 2021-04-24 45/week @ 2021-05-01

60 downloads per month

MIT license

9.5MB
148K SLoC

JavaScript 129K SLoC // 0.2% comments TypeScript 16K SLoC // 0.5% comments CoffeeScript 1.5K SLoC // 0.2% comments Rust 303 SLoC // 0.0% comments

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 ✨


Marcus Buffett

🤔 💻

Robin Krahl

🤔 💻 🐛

Max Timkovich

💻

Benoit de Chezelles

🤔

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

Dependencies