Rename Special: Spaces to hyphens, Hyphens to spaces

Features wanted...
Post Reply
John_C
Posts: 336
Joined: 16 May 2018 20:04

Rename Special: Spaces to hyphens, Hyphens to spaces

Post 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
Last edited by John_C on 21 Mar 2022 18:20, edited 1 time in total.

VeeGee

Re: Rename Special: Spaces to hyphens, Hyphens to spaces

Post 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 :

Code: Select all

[ ] > -

Code: Select all

[-] >  
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,

Code: Select all

Hyphens to Space,[-] >  
would show friendly reminder text in the rename dialog as to what the pattern does.

John_C
Posts: 336
Joined: 16 May 2018 20:04

Re: Rename Special: Spaces to hyphens, Hyphens to spaces

Post 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".

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

Re: Rename Special: Spaces to hyphens, Hyphens to spaces

Post 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.

Post Reply