Jump to content

Cheatsheet - shortcuts for your tools


Recommended Posts

 

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

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

Screen Shot 2017-10-07 at 6.24.40 PM.jpg

Edited by mutasem
updated list
Link to comment

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 comment
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 by xilopaint
Link to comment

@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 comment

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 by mutasem
Link to comment

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 :)

Link to comment
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 comment

@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).

Screen Shot 2017-10-16 at 9.40.39 PM.png

Link to comment
  • 3 weeks later...
  • 8 months later...

I transcribed the shortcuts for Google Sheets, in case anyone wants them !

 

{
    "Google Sheets" : {

		"Select column" : "Ctrl + Space",
		"Select row" : "Shift + Space",
		"Select all" : "⌘ + a or ⌘ + Shift + Space",
		"Undo" : "⌘ + z",
		"Redo" : "⌘ + y or ⌘ + Shift + z or Fn + F4",
		"Find" : "⌘ + f",
		"Find and replace" : "⌘ + Shift + h",
		"Fill range" : "⌘ + Enter",
		"Fill down" : "⌘ + d",
		"Fill right" : "⌘ + r",
		"Save" : "⌘ + s",
		"Open" : "⌘ + o",
		"Print" : "⌘ + p",
		"Copy" : "⌘ + c",
		"Cut" : "⌘ + x",
		"Paste" : "⌘ + v",
		"Paste values only" : "⌘ + Shift + v",
		"Show common keyboard shortcuts" : "⌘ + /",
		"Compact controls" : "Ctrl + Shift + f",
		"Input tools on/off" : "⌘ + Shift + k",
		"Select input tools" : "⌘ + Option + Shift + k",

		"Bold" : "⌘ + b",
		"Underline" : "⌘ + u",
		"Italic" : "⌘ + i",
		"Strikethrough" : "Option + Shift + 5",
		"Center align" : "⌘ + Shift + e",
		"Left align" : "⌘ + Shift + l",
		"Right align" : "⌘ + Shift + r",
		"Apply top border" : "Option + Shift + 1",
		"Apply right border" : "Option + Shift + 2",
		"Apply bottom border" : "Option + Shift + 3",
		"Apply left border" : "Option + Shift + 4",
		"Remove borders" : "Option + Shift + 6",
		"Apply outer border" : "Option + Shift + 7 or ⌘ + Shift + 7",

		"Insert link" : "⌘ + k",
		"Insert time" : "⌘ + Shift + ;",
		"Insert date" : "⌘ + ;",
		"Insert date and time" : "⌘ + Option + Shift + ;",
		"Format as decimal" : "Ctrl + Shift + 1",
		"Format as time" : "Ctrl + Shift + 2",
		"Format as date" : "Ctrl + Shift + 3",
		"Format as currency" : "Ctrl + Shift + 4",
		"Format as percentage" : "Ctrl + Shift + 5",
		"Format as exponent" : "Ctrl + Shift + 6",
		"Clear formatting" : "⌘ + \\",

		"Move to beginning of row" : "Fn + Left arrow",
		"Move to beginning of sheet" : "⌘ + Fn + Left arrow",
		"Move to end of row" : "Fn + Right arrow",
		"Move to end of sheet" : "⌘ + Fn + Right arrow",
		"Scroll to active cell" : "⌘ + Backspace",
		"Move to next sheet" : "⌘ + Shift + Fn + Down arrow",
		"Move to previous sheet" : "⌘ + Shift + Fn + Up arrow",
		"Display list of sheets" : "Option + Shift + k",
		"Open hyperlink" : "Option + Enter",
		"Open Explore" : "Option + Shift + x",
		"Move focus out of spreadsheet" : "Ctrl + ⌘ + Shift + m",
		"Move to quicksum (when a range of cells is selected)" : "Option + Shift + q",
		"Move focus to popup (for links, bookmarks, and images)" : "holding Ctrl + ⌘, press e then p",
		"Open drop-down menu on filtered cell" : "Ctrl + ⌘ + r",
		"Open revision history" : "⌘ + Option + Shift + h",
		"Open chat inside the spreadsheet" : "Shift + Esc",
		"Close drawing editor" : "⌘ + Esc or Shift + Esc",

		"Insert/edit note" : "Shift + F2",
		"Insert/edit comment" : "⌘ + Option + m",
		"Open comment discussion thread" : "⌘ + Option + Shift + a",
		"Enter current comment" : "holding Ctrl + ⌘, press e then c",
		"Move to next comment" : "holding Ctrl + ⌘, press n then c",
		"Move to previous comment" : "holding Ctrl + ⌘, press p then c",

		"File menu" : "Ctrl + Option + f",
		"Edit menu" : "Ctrl + Option + e",
		"View menu" : "Ctrl + Option + v",
		"Insert menu" : "Ctrl + Option + i",
		"Format menu" : "Ctrl + Option + o",
		"Data menu" : "Ctrl + Option + d",
		"Tools menu" : "Ctrl + Option + t",
		"Open insert menu" : "⌘ + Option + = (with cells selected)",
		"Open delete menu" : "⌘ + Option + - (with cells selected)",
		"Form menu" : "Ctrl + Option + m",
		"Add-ons menu" : "Ctrl + Option + n",
		"Help menu" : "Ctrl + Option + h",
		"Accessibility menu" : "Ctrl + Option + a",
		"Sheet menu (copy, delete, and other sheet actions)" : "Option + Shift + s",
		"Context menu" : "⌘ + Shift + \\",

		"Insert rows above" : "⌘ + Option + = (with rows selected) OR Ctrl + Option + i, then r",
		"Insert rows below" : "Ctrl + Option + i, then b",
		"Insert columns to the left" : "⌘ + Option + = (with columns selected) OR Ctrl + Option + i, then c",
		"Insert columns to the right" : "Ctrl + Option + i, then o",
		"Delete rows" : "⌘ + Option + - (with rows selected) OR Ctrl + Option + e, then d",
		"Delete columns" : "⌘ + Option + - (with columns selected) OR Ctrl + Option + e, then e",
		"Hide row" : "⌘ + Option + 9",
		"Hide column" : "⌘ + Option + 0",
		"Group rows or columns" : "Option + Shift + Right arrow",
		"Ungroup rows or columns" : "Option + Shift + Left arrow",
		"Expand grouped rows or columns" : "Option + Shift + Down arrow ",
		"Collapse grouped rows or columns" : "Option + Shift + Up arrow ",

		"Show all formulas" : "Ctrl + ~",
		"Insert array formula" : "⌘ + Shift + Enter",
		"Collapse an expanded array formula" : "⌘ + e",
		"Show/hide formula help (when entering a formula)" : "Shift + Fn + F1",
		"Full/compact formula help (when entering a formula)" : "Fn + F1",
		"Absolute/relative references (when entering a formula)" : "Fn + F4",
		"Toggle formula result previews (when entering a formula)" : "Fn + F9",
		"Resize formula bar (move up or down)" : "Ctrl + Option + Up and Ctrl + Option + Down",

		"Turn on screen reader support" : "⌘ + Option + z",
		"Read column" : "⌘ + Option + Shift + c",
		"Read row" : "⌘ + Option + Shift + r"
    }
}

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...