[TxMt] Re: Remove trailing spaces and tabs

Scott Haneda talklists at newgeo.com
Thu Apr 2 08:00:21 UTC 2009


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.

> After editing such a tm* file you have to Flush Cache & Reload Bundles
> (Bundles > Bundle Editor > press ⌥ > Flush...) or simply restart TM.


Thanks
--
Scott * If you contact me off list replace talklists@ with scott@ *




More information about the textmate mailing list