Hi, I've been using TextMate for almost a year now and I think it's great, except for one feature which I find annoying - when you select a block of text and hit a pair key (Eg. ', ", [, < etc) instead of overwriting the selected text it nestles it in between two of the key you pressed.
I thought that I'd probably get used to it in a few weeks but I guess I haven't and I still find it really annoying when I forget to hit backspace first. So I was just wondering if anyone knew of a way to disable the feature?
Many thanks! Mark
On 16 Jun 2007, at 17:13, MakTheYak wrote:
So I was just wondering if anyone knew of a way to disable the feature?
This is the best thing ever and you are quite mad. However you can't find it that annoying as if you'd simply looked in Preferences → Text Editing you would see the option to disable it ;)
Le 16 juin 07 à 19:12, Ciarán Walsh a écrit :
On 16 Jun 2007, at 17:13, MakTheYak wrote:
So I was just wondering if anyone knew of a way to disable the feature?
This is the best thing ever and you are quite mad. However you can't find it that annoying as if you'd simply looked in Preferences → Text Editing you would see the option to disable it ;)
Well, actually, it can be quite annoying, depending on the context.
Typically, in Lisp, the defun is somehing like
(defun ${1=name} (${2=parameters} [...]))
The same macro would make perfect sense when you define methods. However, while function parameters are given in a list
(defun foo (x y z) [...])
the method gives a type, too.
(defmethod bar ((x number) (y list) (z some-type)) [...])
Thus, when defining a method and right after typing the name, you often come tosuch text
(defmethod bar ((parameter)) [...])
with the caret right before the "parameter".
The huge number of situation where it's useful is worth the annoyance, though.
Thanks! But actually the wording on that option makes it sound like it's just the auto-pairing it affects so I've left it alone in the past. The thing is I like it auto-pairing when I'm typing because that doesn't interfere with what you'd expect to happen in a bad way. I just don't like it when I've got some text selected and it puts the pairs either side - that's not a normal behavior!
But it looks like they come hand in hand and so I guess I'm better off with it left switched on!
Thanks for your help :)
Ciarán Walsh-3 wrote:
However you can't find it that annoying as if you'd simply looked in Preferences → Text Editing you would see the option to disable it ;)
On 17. Jun 2007, at 00:59, MakTheYak wrote:
[...] But it looks like they come hand in hand and so I guess I'm better off with it left switched on!
Yeah, currently they do. I do want to split it in the future though, since I do want to selectively disable wrapping for some (dynamic) scopes :)