Code Case

An Alfred Workflow


Short Description

Case Converter for Code

Last Updated

23 Sep 2014

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

1.2.1
 

Bundle ID

fm.fastmail.dfay.codecase
 

Author

Case Converter for Code

there is a single script filter codecase which converts the argument

e.g.

and copies it to the clipboard.

The example shows a space delimited argument, but it will also convert between any of the cases, e.g. Camel -> Pascal, so   codecase myGreatVariableName   will return   my_great_variable_name   etc.

The workflow also contains blank hotkeys for each of the conversions (set up to act on selected text and paste into the frontmost app). 

Based largely on this SublimeText plug-in: https://github.com/jdc0589/CaseConversion/blob/master/case_conversion.py