[TxMt] Re: Double-click selects : and @ in ruby -- how is this defined?
Walter Lee Davis
waltd at wdstudio.com
Mon Jun 29 19:00:32 UTC 2015
Thanks, I will look into that, but at first read, it doesn't look exactly like what I'm thinking of. In TM 1.5, punctuation of all kinds was treated as a word boundary when you double-clicked to make a selection. I added the underscore in the TM 1.5 preferences in the Word Characters field, so snake-cased words would be treated as whole words. But in this case, : and @ appear to be treated as part of the word, and while I could use this example you linked to to add more characters, it's not apparent to me how I would remove them in the same interface.
Walter
On Jun 29, 2015, at 10:42 AM, dipnlik <dipnlik at gmail.com> wrote:
> Not sure if this solves your problem but as a Ruby programmer this was
> the FAQ entry that made me switch to TM2:
>
> https://github.com/textmate/textmate/wiki/FAQ#completion-considers-var-var-and-var-as-different
>
> --
> :: dip
> --
>
> On Sat, Jun 27, 2015 at 12:12 PM, Walter Lee Davis <waltd at wdstudio.com> wrote:
>> I am slowly migrating from 1.5, and one thing that I really liked about the former was that if you double-clicked a symbol :foo or instance variable @bar, your selection cursor only grabbed the name, not the metacharacter preceding it. This made it really easy to change the content without altering the shell. Several times lately I have been caught out by this difference in TM2 — there, a double-clck selection grabs the entire thing. Muscle memory is foiled.
>>
>> Is there a place in the Ruby bundle syntax that controls this behavior?
>>
>> Thanks,
>>
>> Walter
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list