Jump: Alfred-like cd
September 4, 2011
One app I can’t live without on my mac is Alfred. Unfortunately, Alfred is only useful in a GUI environment. My day at work often starts like this:
⌘␣ term ↵
cd Doc[TAB]...[TAB]...[TAB]
A couple of days ago, the thought crossed my mind that there ought to be a
better way of handling this, and I’m now introducing jump. First note that jump relies on mdfind – i.e. spotlight – and has only been tested on OSX Lion and requires node.js. Without further ado, install with:
npm -g install jump
jump >> ~/.bash_profile
source ~/.bash_profile
To use jump, type j in a terminal, and enter your query at the prompt:
results will be updated live as you type. Switch between suggestions with up
and down arrow, select with enter and boom you’re in the right directory.
Basically, all the fancy web 2.0 autosuggest mojo right in your terminal. The
code is of course available on github.