Skip to content

Instantly share code, notes, and snippets.

@cdeutsch
Created July 18, 2019 16:18
Show Gist options
  • Save cdeutsch/c4956470468cb65aefa7a84b0d0c214d to your computer and use it in GitHub Desktop.
Save cdeutsch/c4956470468cb65aefa7a84b0d0c214d to your computer and use it in GitHub Desktop.
~/Library/KeyBindings/DefaultKeyBinding.dict
{
"$\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
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
"@d" = selectWord:; // cmd-D
"~w" = selectWord:; // option-w
"@\177" = (selectParagraph:, delete:, moveToBeginningOfParagraph:); // command-delete
/* use ctrl+arrow for home and end */
"^\UF702" = "moveToBeginningOfLine:";
"$^\UF702" = "moveToBeginningOfLineAndModifySelection:";
"^\UF703" = "moveToEndOfLine:";
"$^\UF703" = "moveToEndOfLineAndModifySelection:";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment