Skip to content

Instantly share code, notes, and snippets.

@lodestone
Last active January 28, 2018 00:55
Show Gist options
  • Save lodestone/75a5bbf3463edf862f268be058502620 to your computer and use it in GitHub Desktop.
Save lodestone/75a5bbf3463edf862f268be058502620 to your computer and use it in GitHub Desktop.
{
"~f" = "moveWordForward:"; /* M-f */
"~b" = "moveWordBackward:"; /* M-b */
"~w" = (selectWord:);
// select entire line/paragraph
"@L" = (selectParagraph:);
// select from beginning of paragraph to last character
"@l" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:);
// bookmark
"~1" = (setMark:);
// jump to bookmark
"~2" = (swapWithMark:,centerSelectionInVisibleArea:);
// ⌘+d selects a word, ⌘+⇧+D selects a word, copies it, then deselects
"@D" = (setMark:,moveWordBackward:,selectWord:,copy:,swapWithMark:);
"@d" = (moveRight:,moveWordBackward:,selectWord:);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment