Thanks, I will give this a try. I haven't parsed the column_selections fully yet, but at first blush I think I was hoping for something dead simple. Maybe it is simple, with the docs making it harder than it looks. (Before I posted the question, I did start reading this section from the online help...)
Anyway, I will give both approaches some study.
Thanks again.
Spencer
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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate