Created
May 13, 2019 01:03
-
-
Save jfredrickson/73a4151a2a071115f597419e36d0eb4a to your computer and use it in GitHub Desktop.
Remap Home/End keys on 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
// ~/Library/KeyBindings/DefaultKeyBinding.dict | |
// Source: https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x | |
{ | |
"\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