Code Case

An Alfred Workflow


Short Description

Case Converter for Code

Last Updated

04 Aug 2021

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.4
 

Bundle ID

fm.fastmail.dfay.codecase
 

Author

Case Converter for Code

Updated 2021-08-04 for Alfred 4.5 beta.

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 and Universal Actions 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