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

feat: 5 new commands to toggle text between PascalCase, camelCase, snake_case, Title Case and kebab-case #12043

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NikitaRevenco
Copy link

@NikitaRevenco NikitaRevenco commented Nov 9, 2024

This PR introduces a new mode under ` called "case" mode which has several utility keymappings for working with switching case of text

switch_to_lowercase and switch_to_uppercase have been moved to this new mode. 5 new commands have been added and are accessible under ` aswell:

Key Description Command
l Switch all text to lowercase switch_to_lowercase
u Switch all text to UPPERCASE switch_to_uppercase
p Switch text to Pascal Case switch_to_pascal_case
c Switch text to camelCase switch_to_camel_case
t Switch text to Title Case switch_to_title_case
s Switch text to snake_case switch_to_snake_case
k Switch text to kebab-case switch_to_kebab_case

@NikitaRevenco NikitaRevenco changed the title feat: commands to toggle text between Pascal Case, camelCase, snake_case, Title Case, snake_case and kebab-case feat: 5 new commands to toggle text between PascalCase, camelCase, snake_case, Title Case and kebab-case Nov 9, 2024
TornaxO7

This comment was marked as off-topic.

@NikitaRevenco
Copy link
Author

Interesting feature idea, however, I'm a bit unsure if this might be more suitable as a plugin than as a core feature.

Imo, it shouldn't be a plugin. This is a useful feature that is handy to have in an editor when you need it, but it's not something you know you need until you need it.

@NikitaRevenco
Copy link
Author

NikitaRevenco commented Nov 20, 2024

Interesting feature idea, however, I'm a bit unsure if this might be more suitable as a plugin than as a core feature.

Btw, I only replied now because your reply was marked as "off topic" before

How do comments get marked as off-topic? Is it automatic ,or someone marked yours?

@TornaxO7
Copy link
Contributor

How do comments get marked as off-topic?

You can mark your own comments as off-topic but I also think that the repo owners are able to mark comments as offtopic as well.

Is it automatic ,or someone marked yours?

I did it myself because I thought that my comment there might be not that "helpful" so I just marked it as "offtopic", just to be safe :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants