Recently some minor RSI -like symptoms in my right hand have forced me to re-evaluate my day to day computer usage. Since the symptoms are exclusively in my right hand, I decided to start by restricting my mouse usage as much as possible.
To discourage my mouse using tendencies, I decided to only use the mouse left-handed. After a few minutes I found that my current repertoire of keyboard shortcuts did not meet my new mouse-free workflow.
To build my keyboard portfolio, Iβve been accumulating a list of shortcuts I find handy near my desk. I thought Iβd post the list here in case others might find them useful. This list is not intended to be comprehensive; these are merely shortcuts that I have found helpful.
OS X
Control+ββ Move one space to the leftControl+ββ Move one space to the rightControl+ββ Enter mission controlControl+ββ Leave mission controlCommand+Tabβ Switch applicationsCommand+~β Switch windows within an applicationControl+fn+F3β Summon the dock (arrow keys are pretty intuitive from there)
Screenshots
Command+Shift+3β Full page screenshotCommand+Shift+4β Screenshot of section of screenCommand+Shift+4, thenSpace Barβ Screenshot of application window
Finder
Command+Oβ Open (useful for directories)Command+Deleteβ Delete fileCommand+Wβ Close Finder window
Browsers
Command+Wβ Close current tabCommand+Shift+Wβ Close current windowCommand+1β Switch to tab 1, works for2through9as wellControl+Tabβ Switch to next tabControl+Shift+Tabβ Switch to previous tabCommand+Shift+Tβ Open previously closed tabDeleteORCommand+[β BackCommand+]β ForwardCommand+ββ Scroll to top of pageCommand+ββ Scroll to bottom of pageSpace Barβ Page downCommand+Option+Uβ View Source (Chrome, Opera)Command+Uβ View Source (Firefox)Command+Option+Iβ Open Dev Tools
I also make use of a Chrome extension that allows me to reorder tabs using Control + Shift + Page Up and Control + Shift + Page Down.
Sublime Text 2
Command+Pβ Fuzzy search of files in current project- Start with
@β Search symbols in current file - Start with
#β Search current file - Start with
:β Goto line number
- Start with
Command+Shift+Vβ Paste and indentCommand+Lβ Select current line (can be repeated to select multiple lines)Command+Dβ Select word (repeat to select next occurrence for multiple editing)Command+Returnβ Insert new line after current lineCommand+Shift+Returnβ Insert new line before current lineCommand+/β Comment out current line or selectionCommand+Option+/β Block comment selectionControl+Shift+Kβ Delete current lineCommand+K+Kβ Delete from cursor to end of the lineCommand+K+Deleteβ Delete from cursor to the start of the lineControl+Command+ββ Move selected line(s) upControl+Command+ββ Move selected line(s) down
Layout
Command+K+Bβ Toggle sidebar displayCommand+Option+1β One editor columnCommand+Option+2β Two editor columnsCommand+Option+3β Three editor columnsCommand+Option+4β Four editor columnsCommand+Option+5β Grid View (2 X 2)Control+ [1,2,3,4] β Focus groupControl+Shift+ [1,2,3,4] β Move current file into group
Terminal
Control+Aβ Move to beginning of lineControl+Eβ Move to end of lineControl+Uβ Clear text from cursor to the beginning of the lineControl+Kβ Clear text from cursor to the end of the lineopen .β Open the current directory in a new Finder window
?β List all available keyboard shortcuts.β Load new tweets
Gmail
?β List all available keyboard shortcutsCβ Compose a new message
Applications
Being a Windows 7 user in a previous life, I miss its really nice set of keyboard shortcuts to manage windows.
To help fill the gap on OS X, Iβve been using a 3rd party application, Divvy. It allows you to assign custom keyboard shortcuts to resize and align windows. I use Control + Command + Space Bar to activate Divvy. From there I have the following keys to resize windows predefined:
Dβ Dominant, left 5/6 of the screenSβ Sidebar, right 1/6 of the screenTβ Top half of screenBβ Bottom half of screenLβ Left half of screenRβ Right half of screen