March 01, 2005

Mac Home/End Keys

Reading slashdot today, I ran across this cool tweak for OS X and I'm really looking forward to trying it out. One bit of windows that I actually like is the way the Home & End keys work. But, on the Mac, the keys normally just do nothing--quite irritating. Hopefully, this gets things working...

/* put this in ~/Library/KeyBindings/DefaultKeyBinding.dict */
/* Home/End keys more like Windows */
{
"\UF729" = "moveToBeginningOfLine:"; /* home */
"\UF72B" = "moveToEndOfLine:"; /* end */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* shift + home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* shift + end */
"^\UF729" = "moveToBeginningOfDocument:"; /* control + home */
"^\UF72B" = "moveToEndOfDocument:"; /* control + end */
}

No comments: