dfay 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. Updated 2021-08-04 to use Universal Actions - now requires Alfred 4.5 beta. 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.4 (2021-08-04) updated to use Universal Actions, requiring Alfred 4.5 beta. Also added more fun Space Case icon. 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 August 4, 2021 by dfay cands and poirpom 1 1 Link to comment
smarg19 Posted August 28, 2014 Share Posted August 28, 2014 Great icons! :smile: Also, helpful. Link to comment
politicus 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 comment
dfay 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 comment
politicus 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 comment
gandalfsaxe Posted May 7, 2019 Share Posted May 7, 2019 Seems like it needs to be updated for Alfred 3 Link to comment
deanishe 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 comment
dfay 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 comment
Bhishan 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 comment
dfay 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 comment
pseudometa Posted August 11, 2021 Share Posted August 11, 2021 love also the icons! Only needs some sort of outline – with a dark theme, it does not look too good Link to comment
Abd Ur Rehman Posted April 7, 2022 Share Posted April 7, 2022 Is there any issue with it because it has stopped working when I try to run it as below. It does show with the keyword. Am I missing something? Link to comment
Vero Posted April 7, 2022 Share Posted April 7, 2022 @Abd Ur Rehman Take a look at this post for details, as the workflow uses Python 2, and Apple has removed the scripting language from macOS in 12.3. https://www.alfredapp.com/blog/guides-and-tutorials/python-2-workflows-on-macos-monterey-12-3/ Link to comment
Abd Ur Rehman Posted April 7, 2022 Share Posted April 7, 2022 I did go through that and have installed it but still it's not working for me. https://www.alfredapp.com/help/kb/python-2-monterey/ Link to comment
giovanni Posted April 7, 2022 Share Posted April 7, 2022 hi @Abd Ur Rehman this workflow, and a similar one (case converter) have been migrated to Python 3. If you don't have Python 3, just launching these workflows should prompt you to install Developer Tools, which include Python 3. I hope this helps. Link to comment
Abd Ur Rehman Posted April 7, 2022 Share Posted April 7, 2022 5 minutes ago, giovanni said: this workflow I have installed this one and now works fine. Thanks! Link to comment
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