Add a Rename Special option: "CamelCase" to/from "space separated"

Features wanted...
Post Reply
Stilez
Posts: 107
Joined: 23 Aug 2010 14:32

Add a Rename Special option: "CamelCase" to/from "space separated"

Post by Stilez »

This one is quite common, and it's a pain because there is no easy alternative except manual name editing. Any chance of it being added to Rename Special?

Foir example, a directory of 200 files like this:

\Help\StartPage.txt
\Help\InstallingModules.txt
\HELP\ConfigFiles.txt

It should be quite simple to do programmatically for 99% of cases, although some renames will be "best guesses" only. Adding "Preview..." and "Manually edit..." buttons should handle that. At least it'll do the heavy lifting for the user.

Any chance of this? :)

highend
Posts: 14471
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Add a Rename Special option: "CamelCase" to/from "space separated"

Post by highend »

And there are probably 10 other variants of how this could be done with a to / from.

So why don't you just write a script for it?
One of my scripts helped you out? Please donate via Paypal

Stilez
Posts: 107
Joined: 23 Aug 2010 14:32

Re: Add a Rename Special option: "CamelCase" to/from "space separated"

Post by Stilez »

Because of the same reason as there are 6 versions of capitalisation options in the Rename Special menu, and nobody has said "there are probably 6 other variants of capitalisation changing so why don't you just write a script for it".

Sorry, that just comes over as dismissive. Just because it *could* be scripted doesn't mean it isn't broadly useful enough to add as an option.

Handling the basic process isn't difficult(add spaces in the middle of "lowercase-followed-by-uppercase" letter combinations within "uppercase-followed-by-mixed-case" words). It would be helpful. As recognition of the fact it can't be precise, a "Manually edit" button would help. It will handle the heavy lifting and probably allow other Rename Special options to be used for cleanup.

But right now there's nothing that detects and replaces "<lowercase><UPPERCASE>" ->"<lowercase><SPACE><UPPERCASE>", which is the basic requirement to de-camel.

highend
Posts: 14471
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Add a Rename Special option: "CamelCase" to/from "space separated"

Post by highend »

What I wanted to point out: There can be dozens of things that people would like to handle differently, esp. for files that contain
additional char combinations like " - " or special chars inside "[],(), etc."

Even the very first char of the item can be something that people want to handle differently. So why not write a general script
that shows enough options how all these should / can be handled...
One of my scripts helped you out? Please donate via Paypal

Post Reply