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

Add Case Transformer plugin #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

merlindiavova
Copy link

A simple plugin to transform strings to and from PascalCase, camelCase, snake_case, SCREAMING_SNAKE_CASE, dot.case, kebab-case, backslash\case, slash/case etc.

This is my first attempt at writing Lua, so a review is probably necessary especially around the string matching.

Hopefully this is useful to people

A simple plugin to transform strings to and from PascalCase, camelCase, snake_case, SCREAMING_SNAKE_CASE, dot.case, kebab-case, backslash\case, slash/case etc.

This is my first attempt at writing Lua, so a review is probably necessary especially around the string matching.

Hopefully this is useful to people
@adamharrison adamharrison changed the base branch from 2.1 to master January 22, 2023 19:40
@adamharrison
Copy link
Member

Hey! Sorry for the delay on this. I'm doing a big clean up of PRs, and just got to this one. Looks great! Tried a few, works totally fine.

One thing, though; it crashes lite for me if you don't have a selection (presumably it tries to transform the entire document).

Can you add predicate for your commands that makes it only function if there's a selection? Seems to me you'd never really want to transform the entire document.

@adamharrison
Copy link
Member

Also, can you add the plugin to the manifest.json?

@merlindiavova
Copy link
Author

Sure thing, sorry been super busy. Will get to this shortly

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