dfay 212 Posted August 28, 2014 Share Posted August 28, 2014 (edited) Following up a request re: my Case Converter workflow, I've put together a case converter focused on code. It's hosted on Packal: Code Case 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 Revisions: 1.2.1 (2014-08-29): - updated to use Alfred Workflow 1.8.6 1.2 (2014-08-29): - added hotkeys 1.1 (2014-08-29): - added Cobra Case (capitalized Snake Case) and separate words - added uids so Alfred will sort results based on frequency of usage Edited February 9, 2018 by dfay Link to post
smarg19 34 Posted August 28, 2014 Share Posted August 28, 2014 Great icons! :smile: Also, helpful. Link to post
politicus 40 Posted August 29, 2014 Share Posted August 29, 2014 Awesome! One more dfay workflow I will use 10x everyday Feature request : If you could add a mix of the Camel case and the Pascal case (First letter of the word is a capital letter / space between words are replaced by an underscore --> My_Great_Variable_Name), I would be the happiest. (I name my files/folders using this case). iGyver 1 Link to post
dfay 212 Posted August 29, 2014 Author Share Posted August 29, 2014 Glad you like it. I've added the case you requested and named it Cobra Case (an upright snake) since I couldn't find an "official" term for it. Link to post
politicus 40 Posted September 10, 2014 Share Posted September 10, 2014 @dfay Sorry for the late answer I was not following the topic. That Cobra case... Awesome! Thank you. Link to post
gandalfsaxe 9 Posted May 7, 2019 Share Posted May 7, 2019 Seems like it needs to be updated for Alfred 3 Link to post
deanishe 1,450 Posted May 7, 2019 Share Posted May 7, 2019 Just now, gandalfsaxe said: Seems like it needs to be updated for Alfred 3 Especially now that Alfred 4 has been announced … iGyver 1 Link to post
dfay 212 Posted May 9, 2019 Author Share Posted May 9, 2019 Hmm it's working for me and I don't think I've ever changed anything directly - but there are a couple of workflow.old directories in there now. I think I must have updated it running fixum (https://github.com/deanishe/alfred-fixum) at one point. Maybe try and see if that fixes it? Just uploaded a 1.3 to Packal but it's not showing up.... Link to post
Bhishan 4 Posted May 12, 2019 Share Posted May 12, 2019 This does not work on Alfred 3. Tested: May 11, 2019 Error: Workflow incompatible. Please update to the latest version of Alfred. Also, tried FIXUM, but still does not work. Link to post
dfay 212 Posted May 12, 2019 Author Share Posted May 12, 2019 (edited) Hmm I think I exported from the Alfred 4 beta....and I've deleted Alfred 3 and let Hazel work its magic on related files....might be tricky to get this back. Edited May 12, 2019 by dfay Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now