Permalink
Browse files

Add support for multi-stroke keybindings.

TL;DR: produce tech glyphs with two keystrokes, the
first being ⌃M.

All bindings start with ⌃M. Available: ⌃␣ (␣), E (⌅), ⌃E (↩), ⌃T (⇥), T (⇤), ⌃U (⇞), U (⇟), ⌃P (↑), ⌃A (⌘), ⌃S (⇧), S (⇪), ⌃D (⌫), D (⌦), ⌃F (→), ⌃H (↖), H (↘), ⌃X (⎋), X (⏏), ⌃B (←), B (⇠) and ⌃N (↓). 

For more info, see:
http://blog.macromates.com/2006/multi-stroke-key-bindings/
  • Loading branch information...
1 parent b765b0e commit 8fc584db2332096edfe6032e4db106a07cc18582 @emmanuel committed Jul 31, 2012
Showing with 38 additions and 0 deletions.
  1. +38 −0 Library/KeyBindings/DefaultKeyBinding.dict
@@ -0,0 +1,38 @@
+{
+ /* Modifier keys: start with C-m */
+ "^m" = {
+ "^ " = ("insertText:", "\U2423"); /* C-space space */
+
+ "^e" = ("insertText:", "\U21A9"); /* C-e return */
+ "e" = ("insertText:", "\U2305"); /* e enter */
+
+ "^t" = ("insertText:", "\U21E5"); /* C-t tab */
+ "t" = ("insertText:", "\U21E4"); /* t backtab */
+
+ "^d" = ("insertText:", "\U232B"); /* C-d delete */
+ "d" = ("insertText:", "\U2326"); /* d forward delete */
+
+ "^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 */
+
+ "^b" = ("insertText:", "\U2190"); /* C-b solid left */
+ "^f" = ("insertText:", "\U2192"); /* C-f solid right */
+ "^p" = ("insertText:", "\U2191"); /* C-p solid up */
+ "^n" = ("insertText:", "\U2193"); /* C-n solid down */
+ "b" = ("insertText:", "\U21E0"); /* f dotted left */
+ "f" = ("insertText:", "\U21E2"); /* b dotted right */
+ "p" = ("insertText:", "\U21E1"); /* p dotted up */
+ "n" = ("insertText:", "\U21E3"); /* n dotted down */
+
+ "^h" = ("insertText:", "\U2196"); /* C-h home */
+ "h" = ("insertText:", "\U2198"); /* h end */
+ "^u" = ("insertText:", "\U21DE"); /* C-u page up */
+ "u" = ("insertText:", "\U21DF"); /* u page down */
+
+ "^x" = ("insertText:", "\U238B"); /* C-x escape */
+ "x" = ("insertText:", "\U23CF"); /* x eject */
+ };
+}

0 comments on commit 8fc584d

Please sign in to comment.