lite-xl-plugins
lite-xl-plugins copied to clipboard
Add Case Transformer plugin
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
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.
Also, can you add the plugin to the manifest.json?
Sure thing, sorry been super busy. Will get to this shortly