Gadiguibou / stdrename

'stdrename' is a small command line utility to rename all files in a folder according to a specified naming convention (camelCase, snake_case, kebab-case, etc.).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Request] support files with multiple dot separators in file name

synapseradio opened this issue · comments

Hi! Thank you for writing this library, it's really helpful.

Here's the story behind the request - in a project I'm working on, we have a naming convention where we have [name].[type].[ext].

For example, I'd like to be able to use this util for a file like logger-manager.service.ext, or logger-manager.request-interceptor.ext ( it's a little enterprise-y but it's what I'm working with )

It seems that the extension is currently detected as whatever comes after the first . - the current behavior of stdrename -c is causing this file to become loggerManagerService.ext.

it'd be nice to have dot separators considered separately from other characters. I know this case is a little non-standard, and I appreciate you putting this work up in the first place.

Would be happy to discuss further!

Hi @synapseradio! I'm glad you find stdrename useful. :) I can't guarantee a timeline for this, but it sounds easy enough to implement. Should fragments between the first and the last dot be renamed as well or should they be treated as part of the extension?