[TxMt] Tab Triggered stuff With a Selection!?

thomas Aylott thomas.42 at gmail.com
Mon May 8 22:08:55 UTC 2006


Selecting text from the right to the left, stopping the selection  
before the tab trigger does in fact allow for tab triggered snippets  
with a selection.

tab_trigger<Selection_end>SELECTED_TEXT<Selection_start>

There are a couple of bad things about this.
There is no way to know how your selection was made, since you can't  
see the caret when you have a selection.
That, and the TM_SELECTED_TEXT variable isn't available.

Making the TM_SELECTED_TEXT variable work shouldn't be too difficult  
(I would imagine).
But making the caret visible with a selection would really be weird.  
I'd still like it, but i may be the only one.

thomas Aylott—subtleGradient—oblivious at subtleGradient.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060508/8601f2a6/attachment.html>


More information about the textmate mailing list