[TxMt] Getting one character from the keyboard for use in Commands

Charilaos Skiadas skiadas at hanover.edu
Tue Feb 20 17:13:30 UTC 2007


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





More information about the textmate mailing list