subscribe

I fixed home and end on OS/X terminal!

Wow, thats a relieve.. I switched to os/x 4 months ago, and everything is just great..

I must say, I needed a little bit time too get used to most of the things shiflett mentions. But after a few weeks, most of the annoyances he mentions are actually quite intuitive. Except not being able to tab to comboboxes, that is!

My biggest issue has been not being able to use ‘end’ and ‘home’ as usual.. especially when your ssh-ing into a linux box (I spend at least 75% of time on a given day on remote linux boxes) this is really annoying..

I actually got used to that after a while.. But now! I found the solution to this problem; and it can be found right here.

Next goal: getting page-up/page-down to work in a remote vim window as expected.

Web mentions

Comments

  • A.Sleep

    A.Sleep

    If you enable Access for Assistive Devices (?) you can tab into combo boxes in HTML, not sure about Coca apps.
  • Evert

    Evert

    I think that only works in Safari..

    I don't really use safari (I use firefox) and it doesn't look like it works in other apps either..

    thanks though!
  • Chris Shiflett

    Chris Shiflett

    You might find this useful:

    http://starryhope.com/tech/apple/2006/keyfixer/

    As far as I know, there's no good solution to globally fix the home and end keys. Adium makes them work correctly, but I can't figure out how to make them work in Firefox. Let me know if you figure anything out. :-)
  • Chris Shiflett

    Chris Shiflett

    Also, "Turn full keyboard access on or off" is what you want to turn on to make tabbing work as expected.
  • Evert

    Evert

    Thanks for the 'full keyboard access' hint.. That made it work as expected..

    As for home & end.. I fixed that manually.. (basically the exact same thing the keyboard fixer does..) I think it only applies to full cocoa apps.. as firefox indeed did not work with that setting..

    So.. all thats left is page up/page down in a linux ssh session :)

    Thanks!

    P.S.: just noticed I misspelled your name.. fixed that
  • Siep

    Siep

    I have been eager to find a solution for this as well, thanks!
  • kenrick

    kenrick

    You can globally fix the home/end keys for all cocoa apps:
    http://macromates.com/blog/archives/2005/07/05/key-bindings-for-switchers/

    here are the instructions for those who do not want to click:

    mkdir ~/Library/KeyBindings
    cd ~/Library/KeyBindings
    touch DefaultKeyBinding.dict
    open -a TextMate DefaultKeyBinding.dict

    paste into file:

    {
    /* home */
    "\UF729" = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";


    /* end */
    "\UF72B" = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";


    /* page up/down */
    "\UF72C" = "pageUp:";
    "\UF72D" = "pageDown:";
    }

    also instead of using home and end, you can alternatively use apple + right or left arrow.
  • Stephen Leavitt

    Stephen Leavitt

    Have you seen the following link?

    http://www.macosxhints.com/article.php?story=20040401033846410

    It worked for me, as I'm in the same boat with regard to SSH.
  • Glenn

    Glenn

    Most of you have probably seen this by now, but if not, the kind people at Starry Hope have a fix for Firefox now as well!

    http://www.starryhope.com/tech/2007/keyfixer-firefox-version/

    It worked great for me!
  • KMehthas

    KMehthas

    To comment on page up/down, the link does provide your answer, just not directly. It instructs on the Terminal Keyboard settings for the Home/End keys, and then provides instructions on making the OSX local terminal work like your remote *nix. Looking at the ~/.inputrc section, it shows the resulting format of the codes we enter into Terminal for home/end keys, AND the page up/down:

    "\e[1~": beginning-of-line
    "\e[4~": end-of-line

    ...

    "\e[5~": beginning-of-history
    "\e[6~": end-of-history

    Extrapolating from this, the format of these would be:

    CTRL+[, [, 5, ~

    and

    CTRL+[, [, 6, ~

    Entering these into my Terminal settings, Page Up/Down does work correctly when ssh'ed into my linux box vim'ing a file.

    If this is too late (as this is a relatively old post), or already covered somewhere I didn't notice, never mind, but I recently had this same problem and this is what fixed it for me.
  • Evert

    Evert

    Thanks KMehthas,

    I had found these as well recently.. Thanks for messaging anyway, people seem to find this page through google and it might help someone else.