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
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-a...
-- :: dip --
On Sat, Jun 27, 2015 at 12:12 PM, Walter Lee Davis waltd@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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@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-a...
-- :: dip --
On Sat, Jun 27, 2015 at 12:12 PM, Walter Lee Davis waltd@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 29 Jun 2015, at 21:00, Walter Lee Davis wrote:
Thanks, I will look into that, but at first read, it doesn't look exactly like what I'm thinking of
The fix in the FAQ for “Completion considers $var, @var, and var as different” is exactly what you want.
It links to a longer blog post explaining the concept of character classes, but if you do not care about this, you can just follow the steps given in the FAQ entry.
Thanks a lot, this works perfectly.
Walter
On Jun 29, 2015, at 3:16 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 29 Jun 2015, at 21:00, Walter Lee Davis wrote:
Thanks, I will look into that, but at first read, it doesn't look exactly like what I'm thinking of
The fix in the FAQ for “Completion considers $var, @var, and var as different” is exactly what you want.
It links to a longer blog post explaining the concept of character classes, but if you do not care about this, you can just follow the steps given in the FAQ entry.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate