Created
March 20, 2023 20:52
-
-
Save kgleason/02a39de0c0a115d5fa6bb22301b0a302 to your computer and use it in GitHub Desktop.
Changing the behavior of Home and End keys in MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save this file as ~/Library/KeyBindings/DefaultKeyBindings.dict, | |
# and reboot for it to kick in. Create any missing directories. | |
# I don't know if these comments work in this file. Probably best to remove them. | |
{ | |
"\UF729" = moveToBeginningOfParagraph:; // home | |
"\UF72B" = moveToEndOfParagraph:; // end | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
"^\UF72B" = moveToEndOfDocument:; // ctrl-end | |
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home | |
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment