First thanks to everyone who replied to my previous question.
I'm noticing a very odd behavior when I try to delete whitespace between two tags. Most (if not all) other text editors will select just the whitespace when I double-click on the whitespace area. However TextMate likes to also select the closing/opening bracket/ braces - which of course I don't want to delete.
So if I wanted to delete the space between <p>Hello </p>
I can't double-click on the whitespace between "Hello" and "</p>" without TextMate also selecting the "</" in the closing "</p>" tag.
Another example is if I have a closing brace "}" that is indented too much and I want to line it up with its opening brace, I can no longer double-click on the whitespace to the left of the brace without the brace also being selected. In fact I wasted 15 minutes or so trying to figure out how I broke a PHP script before it dawned on me that when I deleted the whitespace I also deleted a brace.
Is there any preference or setting that changes this odd behavior? I'm assuming TextMate does this for a reason, but I'm scratching my head as to how this editing mode would be useful.
thanks in advance!
brian
On May 19, 2006, at 4:56 PM, Allan Odgaard wrote:
On 19/5/2006, at 21:14, Brian Tully wrote:
[...] Is there any preference or setting that changes this odd behavior? [...]
No -- TM will select either all word chars or all non-word chars. Smarter behavior is however a noted request.
Thanks a bunch for the response, Allan.
You can probably guess my next question -- do you have an ETA on when this might be fixed/implemented?
regards, brian
On May 22, 2006, at 9:24 AM, Brian Tully wrote:
On May 19, 2006, at 4:56 PM, Allan Odgaard wrote:
On 19/5/2006, at 21:14, Brian Tully wrote:
[...] Is there any preference or setting that changes this odd behavior? [...]
No -- TM will select either all word chars or all non-word chars. Smarter behavior is however a noted request.
Thanks a bunch for the response, Allan.
You can probably guess my next question -- do you have an ETA on when this might be fixed/implemented?
Actually I think I figured out a workaround by adding some common open and closing tags to the "Word Characters" Text Editing preference -- so I'll see how that works out.
regards, brian
On May 19, 2006, at 4:56 PM, Allan Odgaard wrote:
On 19/5/2006, at 21:14, Brian Tully wrote:
[...] Is there any preference or setting that changes this odd behavior? [...]
No -- TM will select either all word chars or all non-word chars. Smarter behavior is however a noted request.
Well, I thought by adding certain characters to TM's Word Characters preference that I'd be able to cope with the odd selection behavior when double-clicking on a selection. But truth be told I'm still having a frustrating experience with TM's selection behavior.
I'm assuming that others are coping much better than me, and that perhaps they have figured out a "magical" list of word characters to add to TM's Word Characters preference.
If so, would you be so kind as to post your list?
Maybe we can compile a "greatest hits" until the smarter behavior is implemented.
many thanks in advance!
regards, brian