[TxMt] prefix , suffix lines ala BBEdit in TextdMate?

Steve Lianoglou lists at arachnedesign.net
Fri Mar 9 19:02:05 UTC 2007


Hi,

> Look at column selection/typing:
> http://macromates.com/textmate/manual/ 
> working_with_text#column_selections
>
> On 9 Mar 2007, at 18:26, smarks.other wrote:
>
>> Hi,
>>
>> I was wondering if there's an easy to to prefix or suffix selected  
>> lines with a string.
>>
>> Anyone who has used BBEdit will know what I am taking about.
>>
>> I assume there is a way to do this, but I was hoping to avoid  
>> regular expressions other overly complex gyrations.

While the aforementioned column selection will do the trick for the  
prefixing, suffixing may be tricker since the lines may not be  
equally long.

To deal with that,  you can highlight the lines you want to suffix  
and hit cmd-opt-a and start typing away.

Btw, the cmd-opt-a is the shortcut to "Text > Edit Each Line in  
Selection"

Hope that helps,
-steve





More information about the textmate mailing list