Skip to content

Instantly share code, notes, and snippets.

@coliver
Last active August 16, 2019 18:56
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 coliver/9c7b7f6e643662c3c267bad475f399f8 to your computer and use it in GitHub Desktop.
Save coliver/9c7b7f6e643662c3c267bad475f399f8 to your computer and use it in GitHub Desktop.
/* This file goes in ~/Library/KeyBindings */
{
/* Remap Home / End keys */
/* Home Button*/
"\UF729" = "moveToBeginningOfLine:";
/* End Button */
"\UF72B" = "moveToEndOfLine:";
/* Shift + Home Button */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* Shift + End Button */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* Ctrl + Home Button */
"^\UF729" = "moveToBeginningOfDocument:";
/* Ctrl + End Button */
"^\UF72B" = "moveToEndOfDocument:";
/* Shift + Ctrl + Home Button */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* Shift + Ctrl + End Button*/
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}
@coliver
Copy link
Author

coliver commented Aug 16, 2019

Note: You will need to reboot after making this file to see the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment