From: Andrew Kemp on
Chris Ridd <chrisridd(a)mac.com> writes:

> On 2010-01-24 15:00:01 +0000, Pd said:
>
>> Is there a keystroke for "go to end of line"?
>
> The default keybindings for the Cocoa text system are a bit like
> emacs's. So Ctrl-A goes to the start of a line, Ctrl-E goes to the
> end.

Not exactly -- in the default configuration (StandardKeyBinding.dict)
Ctrl-a and Ctrl-e are bound to moveToBeginningOfParagraph: and
moveToEndOfParagraph:, respectively.

Of course, in a single-line text field that is the same thing, but you
can see the difference between Ctrl-e and Cmd-Right in something like
TextEdit with a multiple line paragraph.

> There's a way to change the default keybindings for the Cocoa text
> system, but it is a bit complicated. And you've already got the
> perfect set, ie emacs's, so why bother? :-))

:-)

--
Drew
From: Chris Ridd on
On 2010-01-24 22:30:08 +0000, Andrew Kemp said:

> Chris Ridd <chrisridd(a)mac.com> writes:
>
>> On 2010-01-24 15:00:01 +0000, Pd said:
>>
>>> Is there a keystroke for "go to end of line"?
>>
>> The default keybindings for the Cocoa text system are a bit like
>> emacs's. So Ctrl-A goes to the start of a line, Ctrl-E goes to the
>> end.
>
> Not exactly -- in the default configuration (StandardKeyBinding.dict)
> Ctrl-a and Ctrl-e are bound to moveToBeginningOfParagraph: and
> moveToEndOfParagraph:, respectively.
>
> Of course, in a single-line text field that is the same thing, but you
> can see the difference between Ctrl-e and Cmd-Right in something like
> TextEdit with a multiple line paragraph.

That's true. There's some documentation over at
<http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html> and
<http://www.hcs.harvard.edu/~jrus/Site/System%20Bindings.html>.

--
Chris

From: Pd on
Chris Ridd <chrisridd(a)mac.com> wrote:

> That's true. There's some documentation over at
> <http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html>

Oh! Oh! This is causing me great pleasure!

"one of the most common complaints from new Windows and Linux/Unix
switchers is that many of the shortcuts they are used to, such as using
the Home and End keys to move to the beginning, respectively end, of a
line or document, don't work as they expect in OS X."

Not just new Windows and *nix switchers, but old Mac users too.

This is great news: "almost every text box you use is a Cocoa text box"
but then it's snatched away: "Some text boxes are not Cocoa however
[...] Notably, Microsoft Word, Adobe applications, AppleWorks, and the
text fields in Camino and Firefox won't work with this hint."

Word, Adobe, Firefox - huh.

--
Pd
From: T i m on
On Mon, 25 Jan 2010 08:06:21 +0000, peterd.news(a)gmail.invalid (Pd)
wrote:


>"one of the most common complaints from new Windows and Linux/Unix
>switchers is that many of the shortcuts they are used to, such as using
>the Home and End keys to move to the beginning, respectively end, of a
>line or document, don't work as they expect in OS X."

(Aside) And, when logging into a domain and it asks you to press Ctrl
+ Alt + Del and if you are using a Mac with mini kbd / Win you have to
press Ctrl + Alt + Backspace?

So is the Mac key with the left facing arrow actually Del under OSX
but backspaces under Windows? (as I also have a Del key on this Mac
keyboard so can't try it as it might work differently).

Cheers, T i m
From: Dorian Gray on
In article <1jcv7ol.1wgfvrr1swrlq8N%peterd.news(a)gmail.invalid>,
peterd.news(a)gmail.invalid (Pd) wrote:

> This is great news: "almost every text box you use is a Cocoa text box"
> but then it's snatched away: "Some text boxes are not Cocoa however
> [...] Notably, Microsoft Word, Adobe applications, AppleWorks, and the
> text fields in Camino and Firefox won't work with this hint."
>
> Word, Adobe, Firefox - huh.

For example, ctrl-e and ctrl-a work to go to paragraph end and beginning
in Safari in google text boxes (both in the toolbar and in the main
window) and the location box on the toolbar. And they work in TextEdit,
but these keystrokes do not work to do anything in Word.