Skip to content

Instantly share code, notes, and snippets.

@thomashope
Last active October 12, 2022 13:37
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 thomashope/ecb0a348bb9f8fde445893eadfa8ab72 to your computer and use it in GitHub Desktop.
Save thomashope/ecb0a348bb9f8fde445893eadfa8ab72 to your computer and use it in GitHub Desktop.
Changes the behaviour of the Home and End keys on Mac to be the same as Windows instead of being UTTERLY USELESS
/*
Place this file in ~/Library/KeyBindings/DefaultKeyBinding.dict
To access the folder from Finder press COMMAND+SHIFT+G, then type ~/Library and press Enter.
From there locate the KeyBindings folder or create it if it doesn't exist.
*/
{
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Home + Shift */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* End + Shift */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment