Page 1 of 1
Rename Special: Spaces to hyphens, Hyphens to spaces
Posted: 21 Mar 2022 17:11
by John_C
There is already an option to convert spaces to underscores and underscores back to spaces, but there is no such thing for hyphens. There are quite a lot of people who prefer hyphens, not underscores, so I think it will be fine to have such renaming in XY.
Actually, what most file-naming style guides suggest is to use spaces for hyphens, while underscores to delimit metadata parts. Something like this:
Code: Select all
... \graphic-design\new-logo-for-bmw_v3_approved.psd
Re: Rename Special: Spaces to hyphens, Hyphens to spaces
Posted: 21 Mar 2022 18:16
by VeeGee
Good afternoon !
I found myself using spaces to hyphens, hyphens to spaces quite a bit lately and just added a few patterns to the
Rename Special > RegEx Rename... menu :
I'm not the best regex-er, but this is working for my file structures. Probably a cleaner way.
What I haven't done is look to see if these menu entries support a naming reminder.
For example,
would show friendly reminder text in the rename dialog as to what the pattern does.
Re: Rename Special: Spaces to hyphens, Hyphens to spaces
Posted: 21 Mar 2022 18:28
by John_C
Yes, thanks. I don't really need to convert spaces to hyphens myself, all of my files are already named correctly :-)
I just mean that having support for underscores but not having support for hyphens is "technically unfair".
Re: Rename Special: Spaces to hyphens, Hyphens to spaces
Posted: 26 Mar 2022 16:58
by admin
Yes, it's "technically unfair", but nobody ever complained in the last 20 years. Let's see if you can get a crowd together.