alfred-rename

0.0.1 • Public • Published

alfred-rename

Alfred workflow to rename files and folders via your clipboard

Add prefix, postfix, and replace {replace} strings inside of file and folder names easily.

Install

npm install --global alfred-rename

Requires Node.js 14+ and the Alfred Powerpack.

Usage

Careful: the file rename actions can not be reversed!

If you want to test if you like the result of the workflow, duplicate the files and folders!

  • Copy a simple text (one line only) into the clipboard
  • Invoke the Alfred File Browser on one or multiple files / folders
  • Select Rename File(s) via Clipboard action and hit Enter
  • You will be presented with multiple options to place your clipboard content
  • When hitting Enter you will copy the new file names into clipboard
    • This is for the purpose of previewing the change.
    • To then actually do the change, you will have to copy your initial text element again…
  • To actually make the rename happen, hold down Command and hit Enter
    • The files will be renamed based on your selection

Replace Variable

If you are using a lot of template files and you would like to place a certain text element into them, you can do the following:

  • Create your files
  • Put {replace} into the filename at the place where you want the other text to go
  • Now copy something into your clipboard (like a project name)
  • Select the files, and run the Rename File(s) via Clipboard action
  • Then select the Replace Variable with Clipboard action
  • Hold down Command and hit Enter to replace the variable in the selected files

Related

Package Sidebar

Install

npm i alfred-rename

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

18.1 kB

Total Files

7

Last publish

Collaborators

  • chrisspiegl