Is discontiguous text selection possible with TextMate?
On a somewhat related note (this is a long shot...), does anyone have any idea what the -[OakTextView setMarkedText:selectedRange:] method is supposed to do? I can't seem to have it make any effect on my OakTextView...
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools http://scan.dalo.us
On 4. Jan 2007, at 18:04, Todd Ditchendorf wrote:
Is discontiguous text selection possible with TextMate?
Nope, sorry.
On a somewhat related note (this is a long shot...), does anyone have any idea what the -[OakTextView setMarkedText:selectedRange:] method is supposed to do? I can't seem to have it make any effect on my OakTextView...
This is part of the NSResponder protocol and used to set the marked text for inputting composed characters such as é, which is entered by first pressing ´ and then e, where the first glyph should be marked while entering the next -- it has nothing to do with selection (and is also not handled properly by TM).
El 11/02/2007, a las 16:09, Allan Odgaard escribió:
This is part of the NSResponder protocol and used to set the marked text for inputting composed characters such as é, which is entered by first pressing ´ and then e, where the first glyph should be marked while entering the next -- it has nothing to do with selection (and is also not handled properly by TM).
I am used to write things like x^2 pressing x and then ^ (a dead-key in spanish keyboard) and then just 2. It has been working not only in all the Cocoa appls but also in the old classic ones, why doesn't work in TM? (you need to press x ^ space and then 2)
Juan <juanfc@...> writes:
El 11/02/2007, a las 16:09, Allan Odgaard escribió:
This is part of the NSResponder protocol and used to set the marked text for inputting composed characters such as é, which is entered by first pressing ´ and then e, where the first glyph should be marked while entering the next -- it has nothing to do with selection (and is also not handled properly by TM).
I am used to write things like x^2 pressing x and then ^ (a dead-key in spanish keyboard) and then just 2. It has been working not only in all the Cocoa appls but also in the old classic ones, why doesn't work in TM? (you need to press x ^ space and then 2)
I think you want to use the actual "^" caret key rather than the little circumflex accent which is likely on your dead key (at least it is on opt-i on US keymaps). I've never seen anyone use the circumflex accent to represent superscripts/exponents.
-Jacob
PS The gmane captcha this time is "metastasizing". Not sure what that implies about textmate/this list. :p
On 2/12/07, Jacob Rus jacobolus@gmail.com wrote:
Juan <juanfc@...> writes:
I think you want to use the actual "^" caret key rather than the little circumflex accent which is likely on your dead key (at least it is on opt-i on US keymaps). I've never seen anyone use the circumflex accent to represent superscripts/exponents.
It's the same key on my french keyboard. Typing ^ + space gives the big one, typing it followed by a letter like e.g. e gives ê. I don't even see the small one alone on my layout.
It's possible to remap and change dead keys to normal keys with Ukelele[1].
[1]: http://www.macupdate.com/info.php/id/14495
-- FredB
El 12/02/2007, a las 1:24, Jacob Rus escribió:
I am used to write things like x^2 pressing x and then ^ (a dead-key in spanish keyboard) and then just 2. It has been working not only in all the Cocoa appls but also in the old classic ones, why doesn't work in TM? (you need to press x ^ space and then 2)
I think you want to use the actual "^" caret key rather than the little circumflex accent which is likely on your dead key (at least it is on opt-i on US keymaps). I've never seen anyone use the circumflex accent to represent superscripts/exponents.
Of course Jakob, I am writing LaTeX, and the simple thing I want is
y = x^2
in Mail I just write:
y = x^2
(since the dead-key doesn't find any char 2 with circunflex and then understands that I want the caret char and then the 2 char)
in TM
y = x^[space]2
(if I press x^2 TM forgets the ^ and left me there x2)
Juan <juanfc@...> writes:
El 12/02/2007, a las 1:24, Jacob Rus escribió:
I am used to write things like x^2 pressing x and then ^ (a dead-key in spanish keyboard) and then just 2.
I think you want to use the actual "^" caret key rather than the little circumflex accent which is likely on your dead key (at least it is on opt-i on US keymaps). I've never seen anyone use the circumflex accent to represent superscripts/exponents.
Of course Jakob, I am writing LaTeX, and the simple thing I want is
y = x^2
in Mail I just write:
y = x^2
(since the dead-key doesn't find any char 2 with circunflex and then understands that I want the caret char and then the 2 char)
Aha, sorry, I suppose I misunderstood how the Spanish keymap works. In the US layout, if you type option-I, you get a "ˆ" symbol, whereas "^" is shift-6. Apparently in the Spanish keymap, if you press the "ˆ" key and then a 2 or space or whatever you're left with "^". Sorry. So if I press x, then option-i, and then 2, I get "xˆ2", which is what I assumed you'd get if you did the equivalent on the Spanish keyboard. I've never seen anyone use the "ˆ" for exponentiation.
As to why TextMate behaves like this: I think it's just a current oversight in the function of the text widget. Presumably Allan can shed more light on this.
-Jacob (o "Jacobo" en México) Rus