[TxMt] Re: Transpose with a more than two characters selected

Jacob Rus jacobolus at gmail.com
Sat Jul 21 01:11:17 UTC 2007


Timothy Bates wrote:
> The twiddle command (cntrl-T or Text:Convert:Transpose) is most often 
> used with no selection or with two letters selected to reverse the order 
> of two characters either side of an insertion point.
> 
> If a bunch of text is selected, twiddle returns the reverse of the char 
> string.
> 
> I wonder if it might not be more functional, if words are selected, to 
> return the words reversed, but preserving letter order? i.e.,
> 
> "validity and" -> "and validity"
> 
> rather than the current "dna ytidilav"
> 
> Does anybody get value from the current multi-char reverse string 
> behaviour?

Cocoa text fields in general (and TextMate's), have a "transposeWords:" 
selector, in addition to the "transpose:" selector.  You could assign it 
to any desired [keystroke][1] you like.

[1]: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html




More information about the textmate mailing list