marcusbuffett / pipe-rename

Rename your files using your favorite text editor
https://crates.io/crates/pipe-rename
MIT License
397 stars 12 forks source link

Hello from xplr #34

Closed sayanarijit closed 3 years ago

sayanarijit commented 3 years ago

Hi, nice tool. I have migrated the bach rename xplr hack from mmv to pipe-rename because it supports reading filenames from stdin.

This solves the following problems:

Really neat thinking :+1:

Also, I like the custom rename command argument. That gave me this project idea of a more generic tool, let's call it batch.

So when I execute ls | batch 'mv {} {}', editor will open

mv "a" "a"
mv "b" "b"

or rm -rf {}

rm -rf "a"
rm -rf "b"

Basically xargs but lets you edit and review the operation before executing, with a nice confirmation prompt.

marcusbuffett commented 3 years ago

Sweet! Happy to hear this was useful for you :D

Love the batch idea, cool that it would be a two-for-one, in that it's doing a dry-run and fixing any issues, in one go.