Expedite Your Workflow with Keyboard Shortcuts


I switch between browser and editor, from editor to terminal and then into the company chat at sporadic times. The amount of those transitions accrue to the point where it’s time to think critically about whether there aren’t easier ways of do it.

Personally I love workflows and tooling, so the idea of using only using my keyboard to make these transitions would be the height of efficiency to me. Luckily with a little work, it’s not that far off.

Legend

OS X

There’s not much default in OS X that isn’t super typical stuff (⌘ + S for save, ⌘ + T for new tab, ⌘ + W to close) but one I didn’t really know about was ⌘ + Tab that will let you cycle through your open applications. Now I know that one is a little more well known but I didn’t really know about until late 2012. The other two things I do is disable any trigger for Spotlight search and alias ZSH to where I keep my main projects.

Hammerspoon

Hammerspoon should be every hacker’s magic wand for manipulating OS X to do whatever you want. You script things with Lua to work with OS X, I mostly use it for window resizing and management. I adapted Brad Cerasani’s config a little bit to make it more my own (you can find that config in my dotfiles). So these are the current shortcuts configured in Hammerspoon:

Alfred

Next up is Alfred, it’s productivity booster that lets you launch applications and do a whole host of other miraculous things. My hotkey is ⌘ + Space and from there I launch applications, run terminal commands, search bookmarks & package managers.

The other than the first thing in that list, all of those require a ‘workflow’ (a script that plugs into the API). In order to use Alfred workflows, you will need to pay for Powerpack.

iTerm

I pretty much live on the command line, I love iTerm2. It’s perfect, absolutely perfect. The one great modification I make is that when I open a new pane or new tab, I make it open the same directory I’m currently working in. These are most used shortcuts:

Chrome

Pretty much, I always use Chrome for pleasure and profit, this should ease working with it:


That’s all I got. Hammerspoon is a huge deal to me to have a scriptable method of moving windows + Alfred, I really don’t feel the need to touch my mouse or trackpad much.