Couln't you make a command and trigger it with "$" keyboard shortcut and then exlude it from some scopes (i.e. strings etc). We want this to work with $R, $H as well. (I also have som other $-functions for my own use, $w, $T and $L)
Martin
On 7/15/06, Andreas Wahlin andreaswahlin@bredband.net wrote:
Sorry about the subject. The thing is, I type $('') quite a lot, so much that even a tab- trigger isn't ideal. I'd like to have a key-trigger of $ to just activate the thing. The dealbreaker though is that I also use $$ sometimes, and of course an american might use $ for some other reasons. So I wonder, can you have some "smart" entering here, like the parentheses in a way. The behaviour I'd like is that if I just type $, it will expand to $ ('$1')$0 (shorthand snippet syntax), but if I hit delete directly after typing $, it will revert the thing to a simple $-character. Hope I'm making myself clear :)
btw, Martin Ström, this could be integrated into your new prototype/ scriptaculous bundle ˆ_ˆ
Andreas ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate