Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active October 25, 2021 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakub-g/130d14edea5b3b9e0f91dfd0a8cd5645 to your computer and use it in GitHub Desktop.
Save jakub-g/130d14edea5b3b9e0f91dfd0a8cd5645 to your computer and use it in GitHub Desktop.
macOS keyboard customizations

Make home/end behave like on Windows

https://stackoverflow.com/questions/45645104/force-magic-keyboard-home-and-ends-keys-to-behave-like-windows-in-macos-high-sie

{
"\UF729" = "moveToBeginningOfLine:";                            /* Home */
"\UF72B" = "moveToEndOfLine:";                                  /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";         /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";               /* Shift + End */
"@\UF729" = "moveToBeginningOfDocument:";                       /* Cmd + Home */
"@\UF72B" = "moveToEndOfDocument:";                             /* Cmd + End */
"@$\UF729" = "moveToBeginningOfDocumentAndModifySelection:";    /* Shift + Cmd + Home */
"@$\UF72B" = "moveToEndOfDocumentAndModifySelection:";          /* Shift + Cmd + End */
"@\Uf702" = "moveWordLeft:";                                    /* Cmd + Left */
"@\Uf703" = "moveWordRight:";                                   /* Cmd + Right */
"@$\Uf702" = "moveWordLeftAndModifySelection:";                 /* Shift + Cmd + Left */
"@$\Uf703" = "moveWordRightAndModifySelection:";                /* Shift + Cmd + Right */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment