Rename by Text List

Features wanted...
Post Reply
Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Rename by Text List

Post by Mesh »

With XY supporting RegEx renaming, there's very little insofar as renaming jobs that it can't handle.

However, there is one type of renaming job that very few apps support, which there is no substitute for, and this is what I'm making a feature request for. And that is to rename by text list.


With this, you would select a number of files/folders to rename, and in the rename dialog, you would paste from the clipboard a text list of replacement names (obviously, the number of items on the list must match the number of items to be renamed). The files/folders would be renamed using the items in the text list - in order, top to bottom.

This allows you to perform renaming jobs where there is no way to algorithmically address the goal in question. For example, if a developer needs a set of test files to test file/folder name parsing - he can create a text list of the various permutations he wants, create a number of empty files, and then rename them by text list in one shot. There is no way to substitute this functionality - the only alternative is to rename each file individually.

A pleasant side effect of this is that it can also be used to circumvent limitations in renaming functions. For example, XY's Case Changing rename functions all have the same limitation - they stop at the last period, assuming that it's the dot before the extention. The problem is that if you're renaming a folder (which would have no extention), and uses periods in its name, the case change will be incomplete. For example "test ch. 1 - introductory chapter" will become "Test Ch. 1 - introductory chapter".

If XY could rename by text list, I could copy the file/folder names into a text editor, change the case there, and then rename the original folders using the newly created list.


Now, obviously, Don could just fix the example above to work properly with folders - but the point is that there are always renaming jobs which cannot be easily addressed with the usual functions, but can be done in a text editor - either because it requires a script due to complexity, or because it needs to be a completely manually generated (or altered) list.

In the past, I've used an Autohotkey script (Lightning Renamer) whenever I've had to use this function. But it would be nice if XY could tackle it on its own.


Anyway, that's my suggestion. Would anybody else find this useful?

admin
Site Admin
Posts: 66336
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Rename by Text List

Post by admin »

- I'll fix the dot thing.
- This wish is on my personal wish list since long.
- I think somebody (jacky?) has written a script to rename by list...

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Rename by Text List

Post by Mesh »

admin wrote:
- I'll fix the dot thing.
- This wish is on my personal wish list since long.
- I think somebody (jacky?) has written a script to rename by list...

Thank you (x3). :)

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Re: Rename by Text List

Post by mwb1100 »

Mesh wrote: If XY could rename by text list, I could copy the file/folder names into a text editor, change the case there, and then rename the original folders using the newly created list.
I've done this exact thing before, but in a less-easy-to-do fashion - I turned the list of existing filenames to a command script that was a bunch of rename commands. I've found this to be a tedious and error-prone process.

Having XY support Mesh's suggestion would be nice. But I do it infrequently enough that it's not a huge deal. I'm honestly not sure I'd remember that it might support it - I probably would end up doing the command script anyway...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Rename by Text List

Post by jacky »

admin wrote:- I think somebody (jacky?) has written a script to rename by list...
Yep, script can be found here: http://88.191.26.34/XYscripts/script/multi-item-rename
(In a similar idea, here's one to create a bunch of files/folders by entering a names: http://88.191.26.34/XYscripts/script/batch-new-items)
Proud XYplorer Fanatic

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Rename by Text List

Post by Muroph »

jacky wrote:Yep, script can be found here: http://88.191.26.34/XYscripts/script/multi-item-rename
(In a similar idea, here's one to create a bunch of files/folders by entering a names: http://88.191.26.34/XYscripts/script/batch-new-items)
after the "while" loops came out i modified these scripts to use the new syntax.
i did it for personal use, but i can post them if anyone wants.

p.s. these are two of my favorite scripts.
thanks jacky! :)
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Rename by Text List

Post by Mesh »

I tried that script, but it's not suitable as it only works for a maximum of 256 files (I was trying to rename about 9000).

So, I'll renew my request for this to be a built in feature. :)

admin
Site Admin
Posts: 66336
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Rename by Text List

Post by admin »

Mesh wrote:I tried that script, but it's not suitable as it only works for a maximum of 256 files (I was trying to rename about 9000).

So, I'll renew my request for this to be a built in feature. :)
I think the Muroph script does the job for now. :)

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Rename by Text List

Post by Mesh »

admin wrote:
I think the Muroph script does the job for now. :)

Drat! Dodged again!

:D

Post Reply