Skip to content

Instantly share code, notes, and snippets.

@pjaspers
Created April 26, 2011 07:42
Show Gist options
  • Save pjaspers/941951 to your computer and use it in GitHub Desktop.
Save pjaspers/941951 to your computer and use it in GitHub Desktop.
A copy of my ~/Library/KeyBindings/DefaultKeyBinding.dict, pretty much copied off of @boredzo
{
/* Modifier keys: start with C-m */
"^m" = {
"^ " = ("insertText:", "\U2423"); /* C-space space */
/*This one added by boredzo.*/
"
" = ("insertText:", "\U23CE"); /* CR return */
/*These two modified by boredzo. 23CE was previously 21A9, and both were previously on e rather than r.*/
"^r" = ("insertText:", "\U23CE"); /* C-r return */
"r" = ("insertText:", "\U2305"); /* r enter */
"^t" = ("insertText:", "\U21E5"); /* C-t tab */
"t" = ("insertText:", "\U21E4"); /* t backtab */
"^d" = ("insertText:", "\U232B"); /* C-d delete */
"d" = ("insertText:", "\U2326"); /* d forward delete */
/*This one added by boredzo.*/
"c" = ("insertText:", "\U2318"); /* c command */
"^a" = ("insertText:", "\U2318"); /* C-a command (apple) */
"^o" = ("insertText:", "\U2325"); /* C-o option */
"^c" = ("insertText:", "\U2303"); /* C-c control */
"^s" = ("insertText:", "\U21E7"); /* C-s shift */
"s" = ("insertText:", "\U21EA"); /* s caps lock */
/*These eight added by boredzo.*/
"^h" = ("insertText:", "\U2190"); /* C-b solid left */
"^l" = ("insertText:", "\U2192"); /* C-f solid right */
"^k" = ("insertText:", "\U2191"); /* C-p solid up */
"^j" = ("insertText:", "\U2193"); /* C-n solid down */
"h" = ("insertText:", "\U21E0"); /* f dotted left */
"l" = ("insertText:", "\U21E2"); /* b dotted right */
"k" = ("insertText:", "\U21E1"); /* p dotted up */
"j" = ("insertText:", "\U21E3"); /* n dotted down */
/*These two modified by boredzo: Changing Home from ctrl-H to shift-ctrl-H, and End from H to shift-ctrl-E.*/
"^H" = ("insertText:", "\U2196"); /* C-h home */
"^E" = ("insertText:", "\U2198"); /* h end */
"^u" = ("insertText:", "\U21DE"); /* C-u page up */
"u" = ("insertText:", "\U21DF"); /* u page down */
/*These two modified by boredzo to be on the e key instead of x (thereby freeing up x for multiplication sign).*/
"^e" = ("insertText:", "\U238B"); /* C-e escape */
"e" = ("insertText:", "\U23CF"); /* e eject */
/*These two added by boredzo.*/
"^f" = ("insertText:", "\U263A"); /* C-f smiling face */
"f" = ("insertText:", "\U2639"); /* f frowning face */
/*This one added by boredzo.*/
"^x" = ("insertText:", "\U00D7"); /* C-x multiplication sign */
};
/* Form-feed */
"^l" = "insertContainerBreak:";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment