Tuesday, August 19, 2008

Key Bindings For Mac

I use multiple OS and switching between then can sometimes drive me round the twist. I'm sure that Apple and Microsoft do this on purpose, but that might be the paranoid android in side of me. If you like your home and end keys to perform a full suite of functions, here are the mappings for Mac OS. Create or edit, ~/Library/KeyBindings/DefaultKeyBinding.dict Add the follow, and save the file.
{
"\UF729"  = "moveToBeginningOfLine:";                   /* Home         */
"\UF72B"  = "moveToEndOfLine:";                         /* End          */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";       /* Shift + End  */
"^\UF729" = "moveToBeginningOfDocument:";               /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:";                     /* Ctrl + End  */
}
For a full run down of key bindings, check out the Mac OS X Key Bindings

0 comments:

Post a Comment