Keypirinha / SDK

Keypirinha's Software Development Kit (SDK)
http://keypirinha.com
Other
43 stars 6 forks source link

Make default directory name separate CamelCase with dashes #5

Open sschuberth opened 3 years ago

sschuberth commented 3 years ago

Just as minor idea for improving the default directory name created at

https://github.com/Keypirinha/SDK/blob/9340fb4be905c0418d6f4dd553ea1c59d9287c7e/tools/tmpl.py#L30

How about converting CamelCase to dash-separations, so that

kptmpl package FooBar

would create a directory "keypirinha-foo-bar" instead of "keypirinha-foobar"? That could be done with a Regex replacement similar to this Kotlin code that I wrote.