Prototype/plugin idea: Bulk Renamer

This is a half baked idea that I’ve prototyped in the UI, but want to separate into a plugin. It accepts scene query criteria:

And a path pattern:

Then generates a new path/filename, which can then be applied or edited and renamed:

For example:

On the prototype, clicking the Apply button renames the file. Edit brings up a dialog to edit the path before renaming:

There are buttons to select multiple scenes and apply the change, but these are currently non-functional. A backend javascript script can be implemented fairly easily to run a batch rename for a selection of files, or applied based on a filter.

The prototype has absolutely zero safety rails, so should be treated with caution.

The main purpose of this post is to gauge interest in the idea, or determine if there are improvements to the idea to consider. It’s also an invitation for someone to run with the idea, if they are interested. It worked alright in my limited testing, and I’ll probably develop the idea enough to use it personally if no one else does, but if there’s a wider interest for it, I’ll look at polishing it into a plugin.

The prototype replaces the Scene Filename Parser, so is accessible by clicking on that button in the Tools page.

The prototype is available as a stash repo branch here:

Let me know what you think.

5 Likes

I love the idea. I have been using the renamerOnUpdate plugin and it has worked well for my needs, but an official way to rename files directly in Stash would be very welcome.