jdavisclark / CaseConversion

Case conversion plugin (pascal, camel, snake) for sublime text 2
MIT License
300 stars 47 forks source link

[Feature] make conversion in context menu #26

Open claudchan opened 8 years ago

claudchan commented 8 years ago

Hi, Highlight text, right-click (open context menu), change case.

pykong commented 7 years ago

Second that. I doubt anyone could remember all the different key bindings. It would be great to display in the style: NameOfCase: PreviewOfWord

Like PascalCase: MyConvertedWordPreview

pykong commented 7 years ago

I have created an early version of such improved CaseConversion plugin: https://github.com/bfelder/CaseConversion/blob/master/case_conversion.py

Just use a test view with words like CaseConversionTest in it. Mark them with caret and run:

view.run_command('toggle_case_converter')

A quick panel will be displayed offering all types of case conversions. The best part is that as you move through the quick_panel the selected word is changed on the fly. Very cool. This patch is early stage and still has major hiccups. (Note lower-, upper-, and title case conversions are also supported: https://github.com/jdc0589/CaseConversion/issues/36)

@claudchan @jdc0589 Still, I'd like to have some feedback on it. Do you like it? What do you not like?