[TxMt] Updated Search in Project with ack

Luke Daley ld at ldaley.com
Mon Jun 2 22:57:03 UTC 2008

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/Search%20in%20Project%20with%20ack.tmCommand#L143 
> ) I'll include it.


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!


More information about the textmate mailing list