Hi Dr. Drang,
Thanks, I hadn't considered using a Snippet for this.
(Ignoring some edge cases that you already mentioned), it seems to work for normal selections, but unfortunately not for column selections.
I'm not sure how much room there is in an external program/Command to do anything about this, but if you have some suggestions for making it work with column selections I'd appreciate hearing them.
Strangely enough replacing each non-CR/LF character with a single character like 'x' works for column selections, but replacing with "$1" doesn't - that is, it seems to insert unwanted line breaks when doing this.
Thanks,
Chris
On Feb 20, 2007, at 11:45 AM, Chris Insinger wrote:
Hi Dr. Drang,
(Ignoring some edge cases that you already mentioned), it seems to work for normal selections, but unfortunately not for column selections.
I'm not sure how much room there is in an external program/Command to do anything about this, but if you have some suggestions for making it work with column selections I'd appreciate hearing them.
Strangely enough replacing each non-CR/LF character with a single character like 'x' works for column selections, but replacing with "$1" doesn't - that is, it seems to insert unwanted line breaks when doing this.
Just out of curiosity, what use do you have for a command like that? Perhaps there is a better way of attacking your overall problem.
Thanks,
Chris
Haris
On Feb 20, 2007, at 10:45 AM, Chris Insinger wrote:
(Ignoring some edge cases that you already mentioned), it seems to work for normal selections, but unfortunately not for column selections.
True enough, Insert as Snippet seems to work more like a regular paste than a column paste. But...
If you already have a column of text selected, can't you just hit the key you want a bunch of times and get that character inserted in every column? Seems like less effort to do that than try to remember the Key Equivalent for a special command. Your keyboard's auto-repeat reduces the effort even more.
-- Dr. Drang