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 for2
through9
as wellControl
+Tab
β Switch to next tabControl
+Shift
+Tab
β Switch to previous tabCommand
+Shift
+T
β Open previously closed tabDelete
ORCommand
+[
β 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