I recently made the switch to the newest version of the web development application Espresso. After having used Coda for all my previous web development needs, I’m naturally making some comparisons between the two. I’ll leave the blow by blow evaluation to others but thought it worth noting that the one feature I find myself really missing the most from Coda is the ability to quickly search through reference books. This surprised me a bit as I wouldn’t normally list this as a “killer feature” of Coda, but more than anything else I’ve found myself continuously cursing the lack of this option in Espresso.
Thinking others might be feeling the same way I quickly threw together this Google Quick Search Box plug-in (ZIP, 742kb) that will let you send searches to reference sources for HTML, CSS, JQuery, PHP, MySQL, Python, and WordPress. You can start the query by entering text directly into QSB or by selecting text within Espresso itself, or any other application for that matter.
While in the code editor you can then select some text and choose “Look Up in Reference Books” from the contextual menu which will execute a search at the associated reference source using the text as the query. Unfortunately, one of the drawbacks to this approach is that you can’t quickly send queries to more than one source for a given code type. Nevertheless, over time I’ve really become dependent on being able to run these quick lookups.
I figured the best way to close this gap in Espresso was by building a QSB plug-in. To install the plug-in just add the codex.hgs file into your
~/Library/Application Support/Google/Quick Search Box/PlugIns directory. Once installed you will need to restart QSB in order to access the new actions.
Once you have everything working, just add any text into QSB (don’t forget to prepend with a space) press “tab” to pivot to an action and select a codex to search. Typing “codex” will bring up all available sources or you can just type the name of a specific source, e.g. WordPress, JQuery, and so on. Once you have selected the codex to be searched, press return to send the query. Alternatively, you can also start by sending text to QSB from within Espresso, or whatever other editor you’re using, by selecting the appropriate bit of code and choosing “Send to Quick Search Box” from the services menu.
With the theory that a picture is worth a thousand words I recorded this quick video demonstrating the plug-in in action.
Now that I have quick access to all my reference books I think I’ll be switching over to Espresso full-time. I’d be interested in hearing if anyone else has recently made the switch to Espresso and if so what they’ve been missing the most.