krasa / StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Apache License 2.0
694 stars 81 forks source link

Feature request - Switch case to "Title Case" #214

Open adriangronau opened 1 year ago

adriangronau commented 1 year ago

Is your feature request related to a problem? Please describe. When writing documentation, using title case for section headers is the default for my projects. While the string manipulation plugins provides the capitalize option, this is different than title case. For example:

Because the capitalize option simply capitalizes every word, I've been using online tools for this purpose but an integration in the plugin would improve my workflow a lot! 🙂

Describe the solution you'd like In the context menu, after selecting String Manipulation > Switch Case ... a new option To Title Case should appear and perform the transformation of the selection to title case

Describe alternatives you've considered Online tools like https://titlecaseconverter.com/

Additional context As there are multiple conflicting standards (e.g. AMA, APA, NYT, Wikipedia, ...), it might make sense to define one standard to implement.

If this is a welcome change, I'd be happy to implement this myself but wanted to ask first whether the addition makes sense for the plugin.

Cheers

krasa commented 1 year ago

Sending data to external services might be a security/legal problem for some corporations. It would be better to do it in a new plugin.

No idea how an offline solution could be implemented. But sure, it would be welcomed.