[TxMt] Re: Remove trailing spaces and tabs
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Thu Apr 2 10:09:55 UTC 2009
On 02.04.2009, at 11:34, Mathieu Godart wrote:
> Couldn't you discard the output as what can be done for the commands?
>
> Try:
> output = discard;
No.
I guess the problem is the Perl stuff.
What do you see in the Bundle Editor if you select your macro in
question and click on executeCommandWithOption?
command = "perl -pe 's/[\\t ]+$//g'";
or
command = "perl -pe 's/[\\\\t ]+$//g'";
?
On the other hand you can simply write two tiny tmCommands, one for
the Perl stuff and one for saving it, and record a that macro again.
--Hans
More information about the textmate
mailing list