Skip to content

Instantly share code, notes, and snippets.

@mgfink
Last active January 29, 2021 21:35
Show Gist options
  • Save mgfink/6ba5e329456a50cc7ab9ca5eb4cd8d34 to your computer and use it in GitHub Desktop.
Save mgfink/6ba5e329456a50cc7ab9ca5eb4cd8d34 to your computer and use it in GitHub Desktop.
macos keyboard

If, like me, you want Home to send you to the start of the line and not to the top of the document then create a file called DefaultKeyBinding.dict in your ~/Library/KeyBindings folder (might need to create that folder too) with the following contents:

{ "\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