krasa / StringManipulation

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

Request : switch case with diacritics conversion #171

Closed mgohin closed 2 years ago

mgohin commented 2 years ago

I use a lot the switch case option with a shortcut.

I searched an option to apply any conversion while using the switch case like Escape/Encode > Convert diacritics (accents) to ASCII but did not found.

I'm french, I use a lot Cucumber and copy paste my Given/When/Then ;)

By the way, thanks for this nice plugin, I use it everyday and it saves me a lot of time.

krasa commented 2 years ago

Have you tried Macros? Although including Paste + selection of the text into the macro might be problematic.

I recently created Paste as camelCase but making something more generic and configurable would not be a problem.

krasa commented 2 years ago

I think that simply making a Paste action that would keep the selection would be enough, then you could chain everything through macros

mgohin commented 2 years ago

Gonna try this, I'll let you know

mgohin commented 2 years ago

Hmm all keymaps with V are used and useful.

I could search another key to map but I still think it would be great to have that kind of option in your plugin, because everytime I switch case it's for code only (so must remove diacritics).

Maybe it's difficult to do and I can understand that you don't want it ;)

krasa commented 2 years ago

I actually like the idea. You can try it

krasa commented 2 years ago

this: StringManipulation.zip

mgohin commented 2 years ago

THAT'S .... perfect <3 You did apply the ASCII conversion only for some of cases only, p.e.r.f.e.c.t

I must uninstall it for security reason, can't wait the release !

krasa commented 2 years ago

you can update

mgohin commented 2 years ago

That's great, thx !