Michael McDonald's Blog

'Fixing' Home and End in OS X and Eclipse

I switched from Windows to OS X about a year and a half ago. I am generally happier now, but there are some annoyances in OS X that have given me a new respect for Windows; in particular, Windows is much better than OS X when it comes to consistent, powerful keyboard shortcuts. MacOS has always been very mouse-centric, and keyboard shortcuts feel like they are tacked-on as an afterthought. (E.g it is possible, but physically painful, to navigate application menus using the keyboard.)

My biggest pet peeve here is OS X's assignment of the Home and End keys to scroll to the beginning or end of a window, instead of moving the cursor to the beginning or end of the line. I suspect that the person who made this decision was a Powerbook user (Powerbooks don't have Home or End keys), perfectly content to use Command-Left and Command-Right and deciding to break convention and confuse switchers in the name of avoiding redundancy. Honorable, perhaps, but broken.

Here are a mixture of posts describing how to fix the Home and End bindings in OS X:

In the past Eclipse overrode OS X behavior for proper Home/End behavior, which is why I haven't fully tackled this problem until today. With the release of Eclipse 3.2 it now mimics OS X's bindings -- but the above OS X bindings are not used by Eclipse so Eclipse behavior is still broken. To fix the Home and End key bindings in Eclipse go to Preferences -> General.Keys -> Text Editing and 'Add' these bindings:

Command: Category: Text Editing Name: Text Start Key Sequence: Name: <press Home key> When: Editing Text <Add> Command: Category: Text Editing Name: Text End Key Sequence: Name: <press End key> When: Editing Text <Add> Command: Category: Text Editing Name: Select Line Start Key Sequence: Name: <press Shift-Home> When: Editing Text <Add> Command: Category: Text Editing Name: Select Line End Key Sequence: Name: <press Shift-End> When: Editing Text <Add>
link  |   |  9/16/06 11:13am
 
home  |  acting  |  blog  |  consulting  |  noel  |  contact
© 2013 Michael McDonald, . All rights reserved.