{"id":120219,"date":"2009-12-31T13:00:29","date_gmt":"2009-12-31T18:00:29","guid":{"rendered":"http:\/\/theappleblog.com\/?p=38419"},"modified":"2009-12-31T13:00:29","modified_gmt":"2009-12-31T18:00:29","slug":"how-to-replicating-coda%e2%80%99s-books-feature-with-google-quick-search-box","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/120219","title":{"rendered":"How-To: Replicating Coda\u2019s Books Feature With Google Quick Search Box"},"content":{"rendered":"<div class='snap_preview'><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-38416\" title=\"espresso_ReplicatingReference\" src=\"http:\/\/gigapple.files.wordpress.com\/2009\/12\/espresso.png?w=150&#038;h=154\" alt=\"Espresso Icon\" width=\"150\" height=\"154\" \/>I recently made the switch to the newest version of the web development application <a href=\"http:\/\/macrabbit.com\/espresso\/\">Espresso<\/a>. After having used <a href=\"http:\/\/www.panic.com\/coda\/\">Coda<\/a> for all my previous web development needs, I&#8217;m naturally making some comparisons between the two. I&#8217;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&#8217;t normally list this as a &#8220;killer feature&#8221; of Coda, but more than anything else I&#8217;ve found myself continuously cursing the lack of this option in Espresso.<\/p>\n<p>Thinking others might be feeling the same way I quickly threw together this <a href=\"http:\/\/a.theappleblog.com\/files\/codex_plugin.zip\">Google Quick Search Box plug-in<\/a> (ZIP, 742kb)\u00a0that 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. <span id=\"more-38419\"><\/span><\/p>\n<p>It seems like a simple feature hardly worth mentioning but I&#8217;ve found that having the option to quickly check up on the details of a particular function, element, declaration, etc. is an essential part of the way I work. In Coda you can add your own reference books directly into the application associating each one with a particular code type, e.g. php, css, javascript.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-38417\" title=\"Books_ReplicatingReference\" src=\"http:\/\/gigapple.files.wordpress.com\/2009\/12\/books.png?w=570&#038;h=618\" alt=\"Coda Screenshot\" width=\"570\" height=\"618\" \/><\/p>\n<p>While in the code editor you can then select some text and choose &#8220;Look Up in Reference Books&#8221; 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&#8217;t quickly send queries to more than one source for a given code type. Nevertheless, over time I&#8217;ve really become dependent on being able to run these quick lookups.<\/p>\n<p>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 <code>~\/Library\/Application Support\/Google\/Quick Search Box\/PlugIns<\/code> directory. Once installed you will need to restart QSB in order to access the new actions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-38418\" title=\"codex_ReplicatingReference\" src=\"http:\/\/gigapple.files.wordpress.com\/2009\/12\/codex.png?w=464&#038;h=455\" alt=\"QSB Screenshot\" width=\"464\" height=\"455\" \/><\/p>\n<p>Once you have everything working, just add any text into QSB (don&#8217;t forget to prepend with a space) press &#8220;tab&#8221; to pivot to an action and select a codex to search. Typing &#8220;codex&#8221; 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&#8217;re using, by selecting the appropriate bit of code and choosing &#8220;Send to Quick Search Box&#8221; from the services menu.<\/p>\n<p>With the theory that a picture is worth a thousand words I recorded this quick video demonstrating the plug-in in action.<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"580\" height=\"326\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowfullscreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=8462058&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=b3cb55&amp;fullscreen=1\" \/><embed type=\"application\/x-shockwave-flash\" width=\"580\" height=\"326\" src=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=8462058&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=b3cb55&amp;fullscreen=1\" allowscriptaccess=\"always\" allowfullscreen=\"true\"><\/embed><\/object><\/p>\n<p>Now that I have quick access to all my reference books I think I&#8217;ll be switching over to Espresso full-time. I&#8217;d be interested in hearing if anyone else has recently made the switch to Espresso and if so what they&#8217;ve been missing the most.<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/gigapple.wordpress.com\/38419\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/gigapple.wordpress.com\/38419\/\" \/><\/a> <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/godelicious\/gigapple.wordpress.com\/38419\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/delicious\/gigapple.wordpress.com\/38419\/\" \/><\/a> <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gostumble\/gigapple.wordpress.com\/38419\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/stumble\/gigapple.wordpress.com\/38419\/\" \/><\/a> <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/godigg\/gigapple.wordpress.com\/38419\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/digg\/gigapple.wordpress.com\/38419\/\" \/><\/a> <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/goreddit\/gigapple.wordpress.com\/38419\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/reddit\/gigapple.wordpress.com\/38419\/\" \/><\/a> <img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/stats.wordpress.com\/b.gif?host=theappleblog.com&#038;blog=5550580&#038;post=38419&#038;subd=gigapple&#038;ref=&#038;feed=1\" \/><\/div>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=2O1Io8zKVRM:6AXN8wwonB0:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=2O1Io8zKVRM:6AXN8wwonB0:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=2O1Io8zKVRM:6AXN8wwonB0:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=2O1Io8zKVRM:6AXN8wwonB0:V_sGLiPBpWU\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=2O1Io8zKVRM:6AXN8wwonB0:V_sGLiPBpWU\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=2O1Io8zKVRM:6AXN8wwonB0:F7zBnMyn0Lo\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=2O1Io8zKVRM:6AXN8wwonB0:F7zBnMyn0Lo\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=2O1Io8zKVRM:6AXN8wwonB0:guobEISWfyQ\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=2O1Io8zKVRM:6AXN8wwonB0:guobEISWfyQ\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/TheAppleBlog\/~4\/2O1Io8zKVRM\" height=\"1\" width=\"1\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;m naturally making some comparisons between the two. I&#8217;ll leave the blow by blow evaluation to others but thought it worth noting that the one feature I find myself [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,10],"tags":[],"class_list":["post-120219","post","type-post","status-publish","format-standard","hentry","category-news","category-software"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/120219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=120219"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/120219\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=120219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=120219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=120219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}