Fixing Launchbar's Search Templates
06 May 2012For a while now my Launchbar Search Templates have been broken for local files. I think Apple changed Safari and now the params part of the URL is lost when referencing a local file. The end effect is that the great searchable feature of documentation generated with sdoc breaks badly.
First I just thought I'd setup a local nginx server and have it serve up my Reference folder... then I thought of something that would be even easier.
<p>I just threw this small config.ru file into my Reference folder then linked Reference
to .pow/reference
and Reference/public
back to Reference
(to get Pow to serve up static assets). Now http://reference.dev/ pulls up my reference documentation using the existing pow server I already have running constantly anyway.</p>
I should point out it's Pow doing most of the heavy lifting here (since we added the public symlink), not Rack::File. You can actually provide a dummy app that 404s all day and this will continue to work just fine.