Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request : switch case with diacritics conversion #171

Closed
mgohin opened this issue Feb 3, 2022 · 9 comments
Closed

Request : switch case with diacritics conversion #171

mgohin opened this issue Feb 3, 2022 · 9 comments

Comments

@mgohin
Copy link

mgohin commented Feb 3, 2022

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
Copy link
Owner

krasa commented Feb 3, 2022

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
Copy link
Owner

krasa commented Feb 3, 2022

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

@mgohin
Copy link
Author

mgohin commented Feb 3, 2022

Gonna try this, I'll let you know

krasa added a commit that referenced this issue Feb 3, 2022
krasa added a commit that referenced this issue Feb 3, 2022
@mgohin
Copy link
Author

mgohin commented Feb 3, 2022

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 added a commit that referenced this issue Feb 3, 2022
…ase)- apply 'Convert Diacritics (Accents) to ASCII'
@krasa
Copy link
Owner

krasa commented Feb 3, 2022

I actually like the idea.
You can try it

@krasa
Copy link
Owner

krasa commented Feb 3, 2022

this: StringManipulation.zip

krasa added a commit that referenced this issue Feb 3, 2022
@mgohin
Copy link
Author

mgohin commented Feb 3, 2022

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
Copy link
Owner

krasa commented Feb 5, 2022

you can update

@mgohin
Copy link
Author

mgohin commented Feb 7, 2022

That's great, thx !

@mgohin mgohin closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants