[TxMt] Distilling Text (was: Another Editor War Sparked by TextMate)

Allan Odgaard throw-away-1 at macromates.com
Sun Nov 12 17:44:45 UTC 2006


On 12. Nov 2006, at 18:25, Jay Soffian wrote:

>> As for having mate installed, it is always accessible as  
>> $TM_SUPPORT_PATH/bin/mate.
> Okay, attached version of "Distill Text" uses $TM_SUPPORT_PATH/bin/ 
> mate. Also attached two other commands:
>
> - Filter Matching Lines into New Document
> - Filter Non-Matching Lines into New Document
>
> If I don't hear any objections, I'll add these to the Text bundle.  
> Is that okay?

Instead of the Python stuff, you can do:

     egrep "$(tail -n1 <<<"$res")" || exit_show_tool_tip

And for the non-matching version:

     egrep -v "$(tail -n1 <<<"$res")" || exit_show_tool_tip





More information about the textmate mailing list