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

Juan Falgueras jfalgueras at uma.es
Sun Jul 22 12:42:47 UTC 2007


	I made a more clever "Transpose Chars" and "Transpose Words" that I  
used to use there in Alpha and have passed now to TextMate. The  
behaviour is:

	Exchange the last (before cursor) chars.  But attention:  it  
exchange the last real chars, ignoring spaces around.  This is the  
desired behaviour for the typical mistake everybody does.  It is for  
me annoying to need to go back, put the cursor in the middle of the  
swapped chars and press ^T.. How many keystrokes?

"Exchange words" do the same thing, always ignoring the spaces.

If you have several selected words, "Exchange words" interchanges the  
first with the last word, leaving the rest untouched. Same thing with  
"Exchange chars"

I hope this is what you are looking for.

Binded to ^T and ^-Opt-T  and no special scope.







-----
Juan
jfalgueras at uma.es



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070722/12856181/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trans.tmCommand
Type: application/octet-stream
Size: 1566 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070722/12856181/attachment.tmCommand>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transWords.tmCommand
Type: application/octet-stream
Size: 1384 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070722/12856181/attachment-0001.tmCommand>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070722/12856181/attachment-0001.html>


More information about the textmate mailing list