I'm sorry if this has been covered already; maybe I'm searching with the wrong keywords but I can't find much on this.
Let's say I have this piece of PHP code:
$foo'bar'] = 1;
$foo'baz'] = 2;
$this->foo = 3;
Sometimes I also want to select "$foo" instead of just "foo" by double clicking the word. This can be changed by adding "$" to the "word_separators" setting. However, I often want to replace all the "foo" occurrences in the text, which can easily be done using CMD + D on the first "foo", and then a few more CMD +D's.
So I don't include "$" in the word_separators, but I still want to be able to select the "$" sign after selecting the word "foo".
On the Mac, when I select "foo" in "$foo" and press SHIFT + arrow left, "$foo" is selected, adding "$" to the selection of "foo". In ST2 on the Mac though, when I press SHIFT + arrow left, the selection doesn't expand to the left, but moves back from the right, resulting in selecting "fo".
I've tried all sorts of combinations of alt, control, etc. when trying to expand the selection to the left, but it doesn't seem to work. Is there some kind of setting or plugin available to use the default OS X selection behavior?