mutasem 8 Posted October 7, 2017 Share Posted October 7, 2017 (edited) Cheatsheet Alfred workflow that gets shortcuts for applications, websites, tools and others. Use the keyboard more. Github repo workflow file Supported right now Alfred AutoMute Chrome extension Evernote Finder Firefox Google Chrome IntelliJ Idea (default Mac OS X) Mac OSX Microsoft Word Outlook Reddit Enhancement Suite Safari Slack Sublime Text Terminal Video Speed Controller chrome extension Vim Vintage Sublime github.com iTerm2 inbox.google.com trello.com youtube.comI focused on the stuff I use everyday to start with. Let me know what tools you would like this to support. Or better make a pull request with it. Edited November 3, 2017 by mutasem updated list xilopaint and Yuri 1 1 Link to post
xilopaint 72 Posted October 7, 2017 Share Posted October 7, 2017 Would it be possible to add Airmail? mutasem 1 Link to post
Mike Outram 5 Posted October 7, 2017 Share Posted October 7, 2017 Excellent! I guess the tools I use often are Evernote, Asana, Vimeo, Sibelius, Pixelmator, Transcribe!, Google Docs. A few for your list Great workflow, thanks! mutasem 1 Link to post
xilopaint 72 Posted October 7, 2017 Share Posted October 7, 2017 +1 for Pixelmator and Evernote. JGC and mutasem 2 Link to post
mutasem 8 Posted October 8, 2017 Author Share Posted October 8, 2017 Awesome, I will add them to the list. JGC 1 Link to post
politicus 40 Posted October 8, 2017 Share Posted October 8, 2017 (edited) Very useful for a keyboard shortcut junkie like me. Thank you! Dear Santa, here is my list: Asana Excel Airmail Default Folder X Firefox Forklift Keyboard Maestro Opera TextExpander VLC Workflowy Xcode Thank you Santa! Edited October 8, 2017 by politicus mutasem and artdev 2 Link to post
edbro 7 Posted October 8, 2017 Share Posted October 8, 2017 Is there a way for individual users to modify this for the apps they choose? I tried unzipping the workflow, editing shortcuts.py and rezipping into cheatsheet.workflow but when I went to install it said "document could not be opened". Link to post
xilopaint 72 Posted October 8, 2017 Share Posted October 8, 2017 (edited) 1 hour ago, edbro said: Is there a way for individual users to modify this for the apps they choose? I tried unzipping the workflow, editing shortcuts.py and rezipping into cheatsheet.workflow but when I went to install it said "document could not be opened". Right-click on the workflow in Alfred Preferences and choose Open in Finder so you can edit its files. Edited October 8, 2017 by xilopaint Link to post
mutasem 8 Posted October 8, 2017 Author Share Posted October 8, 2017 @edbro you don't need to unzip and zip back. Just open it through alfred workflow preferences (right click on workflow -> open in terminal/finder) and edit the shortcuts.py file in there. The shortcuts.py file generates a cPickle file that the workflow reads, so you need to run [python shortcuts.py] to update the cheatsheet_default.pkl file. I don't recommend this because it will be overwritten by any update I make. The simplest way for now might be to add make your changes in a separate object and keep track of those changes outside of the workflow. I am still working on a feature to allow user-specific shortcuts from the datastore. Link to post
politicus 40 Posted October 8, 2017 Share Posted October 8, 2017 Quote I am still working on a feature to allow user-specific shortcuts from the datastore. +100 Link to post
Yuri 1 Posted October 9, 2017 Share Posted October 9, 2017 Awesome! Would it be possible to add: - Photoshop - Illustrator - Sketch Thank you! mutasem 1 Link to post
mutasem 8 Posted October 9, 2017 Author Share Posted October 9, 2017 All added. deanishe 1 Link to post
politicus 40 Posted October 9, 2017 Share Posted October 9, 2017 I modified the Show iTunes mini player keyboard shortcut in Alfred and the default keyboard shortcut appears in the workflow. Link to post
mutasem 8 Posted October 9, 2017 Author Share Posted October 9, 2017 (edited) You have to run the shortcuts.py code, because it generates a cPickle file that's faster to read from. > python shortcuts.py Any changes will be overwritten by any update. I will try to add the feature to allow user-specific shortcuts as soon as I can. I already redid the structure to split the modules into several files instead of one big one. Edited October 9, 2017 by mutasem Link to post
mutasem 8 Posted October 11, 2017 Author Share Posted October 11, 2017 Just released a new version that's customizable, with added support for Firefox, Safari and Microsoft Word. You can easily find the custom.json file to edit from the workflow itself, or overwrite any defaults from the workflow too. To update, you can wait for the workflow to give you the option to update (it checks once a day), or you can just enter [cheatsheet workflow:update] into Alfred. Enjoy cands and JGC 2 Link to post
mutasem 8 Posted October 14, 2017 Author Share Posted October 14, 2017 @politicus @edbro any feedback on newly added customization? Link to post
edbro 7 Posted October 14, 2017 Share Posted October 14, 2017 I hav 2 hours ago, mutasem said: @politicus @edbro any feedback on newly added customization? I haven't figured out how yet. Link to post
mutasem 8 Posted October 15, 2017 Author Share Posted October 15, 2017 (edited) @edbro are you sure you have updated? can you find Safari in the list? If not, type in [cheatsheet workflow:update] to force an update. I just added two gifs on customization to the github Edited October 15, 2017 by mutasem Link to post
edbro 7 Posted October 15, 2017 Share Posted October 15, 2017 Got it! I followed the example and now have a custom set of keywords! Thank you very much. mutasem 1 Link to post
politicus 40 Posted October 15, 2017 Share Posted October 15, 2017 Starting debug for 'Productivity Cheatsheet' [2017-10-15 20:22:04][input.scriptfilter] Queuing argument '' [2017-10-15 20:22:07][input.scriptfilter] Script with argument '(null)' finished [2017-10-15 20:22:07][ERROR: input.scriptfilter] Code 1: 20:22:06 workflow.py:1743 DEBUG default data serializer: json 20:22:07 workflow.py:1774 DEBUG data `custom` stored as `json` Traceback (most recent call last): File "cheatsheet.py", line 165, in <module> custom = wf.stored_data('custom') File "/Users/Users/Dropbox/Applications_Backups/Alfred_Backups/Backup_Alfred/Alfred.alfredpreferences/workflows/user.workflow.5DB72A1C-0D8A-4B9E-B375-32B8042360AF/workflow/workflow.py", line 1787, in stored_data data = serializer.load(file_obj) File "/Users/Users/Dropbox/Applications_Backups/Alfred_Backups/Backup_Alfred/Alfred.alfredpreferences/workflows/user.workflow.5DB72A1C-0D8A-4B9E-B375-32B8042360AF/workflow/workflow.py", line 608, in load return json.load(file_obj) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 369, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) ValueError: Extra data: line 7 column 1 - line 11 column 2 (char 59 - 128) @mutasem Here is my feedback. Link to post
mutasem 8 Posted October 16, 2017 Author Share Posted October 16, 2017 @politicus this is clearly an issue with your custom.json file. I think the issue is that you are adding extra data after the main json object outside of the main curly brackets {}. As such, it cannot load a faulty json file. To fix this, Sublime has plugins for fixing jsons or use an online tool. Or go down to line 7 - 11 and try to fix it yourself. Or post here so we can help you fix it. I attached a photo of what my json looks like with multiple apps (the custom_app_example is generated automatically to help users). Link to post
deanishe 1,367 Posted October 16, 2017 Share Posted October 16, 2017 On 15/10/2017 at 8:24 PM, politicus said: @mutasem Here is my feedback. Not even a "thank you" for adding 12 new apps? Link to post
politicus 40 Posted November 1, 2017 Share Posted November 1, 2017 @mutasem Sorry for the late reply. Thanks for your answer. Downloading the workflow latest version and fixing the .json file made it. And thank you forget for the 12 added applications cc @deanishe Alphabetically reordering the list of the supported applications in your first post would be helpful mutasem 1 Link to post
mutasem 8 Posted November 3, 2017 Author Share Posted November 3, 2017 List updated. Added support for IntelliJ, Slack and Evernote. cands 1 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