[TxMt] Re: Remove trailing spaces and tabs

Mathieu Godart mathieu at coolsand-tech.fr
Thu Apr 2 09:34:57 UTC 2009


Le 2 avr. 09 à 10:00, Scott Haneda a écrit :

> Thanks for your other tips, see comments below...
>
> On Apr 2, 2009, at 12:29 AM, Hans-Jörg Bibiko wrote:
>
>>>
>>> The Macro has two commands
>>> executeCommandWithOptions
>>> {
>>>   beforeRunningCommand = nop;
>>>   command = "perl -pe 's/[\\t ]+$//g'";
>>>   input = document;
>>>   output = replaceSelectedText;
>>> }
>>
>> What happens if you replace "document" by "selection" ?
>
> I solve the issue of the selection getting replaced by something, but
> the stripping of tabs and spaces no longer works.

Couldn't you discard the output as what can be done for the commands?

Try:
output = discard;

Best regards,
Mathieu

___________________________________________

Mathieu Godart

Skype: mathieu_godart
MSN: mathieu_godart at hotmail.com

ASIC Integration Manager
Coolsand Technologies
___________________________________________




More information about the textmate mailing list