[TxMt] Updated Search in Project with ack
Pedro Melo
melo at simplicidade.org
Wed Jun 4 13:47:45 UTC 2008
Hi,
On Jun 2, 2008, at 11:57 PM, Luke Daley wrote:
> 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.
>
> 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.
http://github.com/melo/search-in-project-with-ack-tmcommand/commit/
dbb9155b61ad62f09c0e92b8ee110d5aedb74c1b
Latest version at http://github.com/melo/search-in-project-with-ack-
tmcommand/tree/master%2FSearchInProjectWithAck.tmCommand?raw=true
Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo at simplicidade.org
Use XMPP!
More information about the textmate
mailing list