Hello, I've done some experiments with double clicks between words and it seems inconsistent and not very useful compared to BBEdit. I've been trying to switch from BBEdit in all cases but am finding it sometimes difficult and extra work and clicks.
When I double click between two words:
Series of spaces get selected - correct One tab - selects the word before the tab instead of the tab - wrong Series of tabs - selects the tabs - correct Series of spaces framed by words with single quote or double quote - selects the spaces and the quotes - wrong Series of tabs framed by words with single quote or double quote - selects the tabs and the quotes - wrong Series of spaces framed by words with $ - selects the spaces and the $ - very wrong, really messes up perl Series of tabs framed by words with $ - selects the tabs and the $ - very wrong, really messes up perl
Why would it try to remove the $ in front of variables when all I wanted to do was remove the spaces or change them to tabs?
In all cases it seems the invisible space between the words should be selected, but nothing else.
Thoughts anyone?
Thanks, ml
On Mon, 28 Aug 2006, Mark Lacas wrote:
Why would it try to remove the $ in front of variables when all I wanted to do was remove the spaces or change them to tabs?
I believe that this is because the selection code just splits characters into two classes, word characters and non-word characters, and it just grabs full runs to the left and right of whatever class of character is currently under the cursor. If you want to fix the sigil selection behavior, pull up the TextMate preferences, and add $,@, etc to the Word Characters list in the Text Editing tab.
William D. Neumann
---
"There's just so many extra children, we could just feed the children to these tigers. We don't need them, we're not doing anything with them.
Tigers are noble and sleek; children are loud and messy."
-- Neko Case
Life is unfair. Kill yourself or get over it. -- Black Box Recorder
On Aug 28, 2006, at 10:43 AM, Mark Lacas wrote:
Series of tabs framed by words with $ - selects the tabs and the $
- very wrong, really messes up perl
You can add $ to the 'Word Characters' in 'Preferences/Text Editing', which makes TextMate a little more usable for Perl (actually I added _ $%@). Of cause this is not a great solution, ideally the word characters could be set for each language (or better yet scope).
And it doesn't fix the unbelievably annoying behavior that TM selects ALL non-word characters on double-click, which makes double-click- drag to extend selections virtually useless. That is my biggest TM criticism, sadly most folks seem to be rather keyboard-oriented users so this misfeature has been long standing and there seems to be no priority to fix that... I offered bribes, but that didn't help either.
Gerd
Thanks for all the replies. Your answers fixed almost all my complaints.
But! Double clicking a tab between two words still selects the word before it, whereas multiple tabs get selected properly. Why the difference in what gets selected.
Yup, I also use double click and then drag, all the time in BBEdit. Doesn't seem to work very well. Maybe an option key that would override and drop into drag over every character without the word character rules.
ml
On Aug 28, 2006, at 9:20 AM, Gerd Knops wrote:
On Aug 28, 2006, at 10:43 AM, Mark Lacas wrote:
Series of tabs framed by words with $ - selects the tabs and the $
- very wrong, really messes up perl
You can add $ to the 'Word Characters' in 'Preferences/Text Editing', which makes TextMate a little more usable for Perl (actually I added _$%@). Of cause this is not a great solution, ideally the word characters could be set for each language (or better yet scope).
And it doesn't fix the unbelievably annoying behavior that TM selects ALL non-word characters on double-click, which makes double- click-drag to extend selections virtually useless. That is my biggest TM criticism, sadly most folks seem to be rather keyboard- oriented users so this misfeature has been long standing and there seems to be no priority to fix that... I offered bribes, but that didn't help either.
Gerd
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
Double clicking a tab between two words still selects the word before it, whereas multiple tabs get selected properly. Why the difference in what gets selected.
Seems to work as expected for me. Making the switch from skEdit wasn't easy but after a while of forcing myself to work in TM's style I found that I like most it better. I think sometimes (so long as it's not a bug) you might need to try to adapt for a while and then if it's still driving you nuts bring it up again. But then again, what do I know? (don't answer that ;)
Josh
i am guessing that you have soft tabs on, so you are actually double- clicking a series of spaces, which gets selected.
but double-clicking a single space, or a single tab will select either the word before or the word after but not the space/tab itself.
very strange.
On Aug 29, 2006, at 6:50 AM, Josh wrote:
Double clicking a tab between two words still selects the word before it, whereas multiple tabs get selected properly. Why the difference in what gets selected.
Seems to work as expected for me. Making the switch from skEdit wasn't easy but after a while of forcing myself to work in TM's style I found that I like most it better. I think sometimes (so long as it's not a bug) you might need to try to adapt for a while and then if it's still driving you nuts bring it up again. But then again, what do I know? (don't answer that ;)
Josh
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
--- michael reece :: software engineer :: mreece@vinq.com