On 02/06/2008, at 8:20 PM, Pedro Melo wrote:
I'm not a ruby programmer, but if someone can point me to the docs on how to catch errors of the popen call (http://github.com/melo/search-in-project-with-ack-tmcommand/tree/master/Sear... ) I'll include it.
http://ldaley.com/tmp/Search%20in%20Project%20with%20ack.tmDelta
Basically did three things:
• Used TextMate.require_cmd to make sure ack is available.
• Used TextMate::Process.run() to open ack is it separates STDOUT from STDERR and is slightly more convenient to use than popen3
• Throw an alert if ack returns a non zero status code.
Thanks for the command!
LD.