yyolk / pype-rename

Rename your files using your favorite text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pype-rename

A renaming utility that acts on pipes.

pype-rename is a replacement for pipe-rename, written in Python!

Inspired by pipe-rename and made out of frustration trying to get it to work without it breaking the terminal1,2.

Installation

For now, add pype-rename.py to your path.

cd ~/.local/bin
curl -L https://raw.githubusercontent.com/yyolk/pype-rename/main/pype-rename.py > pype-rename
chmod +x pype-rename

Usage

Pipe in files that you'd like to be renamed (they're recognized as paths).

ls | pype-rename

Edit the list of files to the desired destination name, save the buffer and close the editor.

Planned

  • published to pypi, installable
  • feature parity with pipe-rename, e.g., work on globs or stdin
  • brew formula
  • xplr script

Footnotes

  1. https://github.com/marcusbuffett/pipe-rename/issues/54

  2. https://github.com/marcusbuffett/pipe-rename/issues/46

About

Rename your files using your favorite text editor


Languages

Language:Python 100.0%