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