Skip to content

Instantly share code, notes, and snippets.

@mtrojahn
Created January 29, 2022 11:19
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 mtrojahn/c5f143928c5930aeb12d8d1cf4597b15 to your computer and use it in GitHub Desktop.
Save mtrojahn/c5f143928c5930aeb12d8d1cf4597b15 to your computer and use it in GitHub Desktop.
MacOS keybindings
// ~/Library/KeyBinding/DefaultKeyBindings.dict
{
"\UF729" = moveToBeginningOfLine:; // home
"\UF72B" = moveToEndOfLine:; // end
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
"$^\UF729" = moveToBeginningOfDocumentAndModifySelection:; // shift-ctrl-home
"$^\UF72B" = moveToEndOfDocumentAndModifySelection:; // shift-ctrl-end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment