[TxMt] prefix , suffix lines ala BBEdit in TextdMate?
smarks.other
smarks.other at gmail.com
Fri Mar 9 19:26:47 UTC 2007
Well, I tried the example for prefixing line by column and basically
after several tries couldn't get it to work. I don't think I could
select the 0 length column.
I was really hoping the such a feature prefix lines would be a non
brainer, but I guess it isn't.
Suffixing lines work pretty easily however.
I wonder how much work would be involved to write a bundle that
offered this functionality. I suspect too much or some one would have
done it already.
Thanks again for the replies.
On Mar 9, 2007, at 2:02 PM, Steve Lianoglou wrote:
> 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
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list