andersennl / case-switch

Atom editor package to change variable names from kebab- to snake- to camelCase.
MIT License
4 stars 3 forks source link

Fixed the toggle command #4

Closed valo closed 8 years ago

valo commented 8 years ago

Fixed several issues:

  1. The toggle command was throwing an error
  2. The selection over the converted text was not kept. This makes the toggle command very hard to use as you need to select the text on each conversion.
  3. Fixed some wrong method names
  4. Improved the snakeToCamel transformation to just walk over all the '_' and convert them

Fixes https://github.com/andersennl/case-switch/issues/3

andersennl commented 8 years ago

Thanks a lot for your pr @valo. Glad to see that the selection finally isn't lost anymore after the conversion is triggered. And of course thanks as well for the fixes :+1: