#cli #tool #rename

app pipe-rename

Rename your files using your favorite text editor

12 stable releases

1.4.2 Jan 3, 2022
1.4.1 Nov 5, 2021
1.4.0 Aug 10, 2021
1.3.0 Apr 30, 2021
1.1.4 Sep 14, 2020

#7 in Text editors

Download history 6/week @ 2022-01-29 23/week @ 2022-02-05 15/week @ 2022-02-12 26/week @ 2022-02-19 6/week @ 2022-02-26 9/week @ 2022-03-05 56/week @ 2022-03-12 46/week @ 2022-03-19 11/week @ 2022-03-26 9/week @ 2022-04-02 46/week @ 2022-04-09 19/week @ 2022-04-16 28/week @ 2022-04-23 64/week @ 2022-04-30 84/week @ 2022-05-07 219/week @ 2022-05-14

398 downloads per month

MIT license

354 lines



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/removes them, by piping them through an external editor

    renamer [FLAGS] [OPTIONS] [FILES]...

    -h, --help       Prints help information
    -V, --version    Prints version information
    -y, --yes        Answer all prompts with yes

    -c, --rename-command <COMMAND>    Optionally set a custom rename command, like 'git mv'

    <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!


~61K SLoC