I believe that this is what you want:<div><br></div><div><a href="http://blog.macromates.com/2012/clever-completion/">http://blog.macromates.com/2012/clever-completion/</a></div><div><br></div><div>(In particular the description of the characterClass property).  You should be able to override these settings in your own source bundle, and probably in your PHP bundle.</div>
<div><br><div class="gmail_quote">On Thu, May 10, 2012 at 10:50 AM, Frankos <span dir="ltr"><<a href="mailto:frank.leigh@btopenworld.com" target="_blank">frank.leigh@btopenworld.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi<br>
<br>
I don't see the advantage of including the $ when selecting a variable. Yes<br>
sometimes it is very handy to include the $ but other times it is a complete<br>
nuisance, especially when creating associative arrays from from pasting a<br>
variables name. I guess the perfect solution is pressing shift, double click<br>
to include the $ or something along those lines.<br>
<br>
My copy of TM2 includes the $ and I really want it to behave like TM1 in<br>
this respect. Does anyone know how to make it NOT include the $ when double<br>
clicking a variable?<br>
<br>
Frankos<br>
<br>
<br>
Gerd Knops-2 wrote:<br>
><br>
> Hi,<br>
><br>
> TM2 still appears to have the same troublesome selection behavior TM1 has.<br>
> As an example take this line in Perl:<br>
><br>
>       die("$self failed to implement ".(caller(0))[3]);<br>
><br>
> Ideally I could select '$self' by double-clicking. For that to work I<br>
> would need to tell TM2 that $ is a word character in Perl, per grammar<br>
> word character definitions are needed. (That may be there already, but I<br>
> can't find it being mentioned anywhere.)<br>
><br>
> Now double-clicking on 'self' and moving the mouse to the left to add the<br>
> '$' doesn't work because it adds '("$'. TM2 should treat non-word<br>
> characters as individual characters instead of grouping them together into<br>
> a "word" when extending a selection that started with a double-click.<br>
><br>
> Similarly it is impossible to select 'caller(0)' by double-clicking<br>
> 'caller' and extending to the right, instead one ends up with<br>
> 'caller(0))['.<br>
><br>
> Gerd<br>
><br>
><br>
> _______________________________________________<br>
> textmate mailing list<br>
> <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://old.nabble.com/-TM2--selection-behavior-tp32995485p33763669.html" target="_blank">http://old.nabble.com/-TM2--selection-behavior-tp32995485p33763669.html</a><br>
Sent from the textmate users mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</font></span></blockquote></div><br></div>