forked from piranha/conf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefaultKeyBinding.dict
More file actions
93 lines (79 loc) · 3.72 KB
/
DefaultKeyBinding.dict
File metadata and controls
93 lines (79 loc) · 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
/* 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"); /* s shift */
"^s" = ("insertText:", "\U21EA"); /* C-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 */
};
/* This command will let Ctrl-Shift-H turn the previous word
* into an HTML/XML opening and closing tag pair. */
"^H" = ( "setMark:",
"moveWordBackward:",
"deleteToMark:",
"insertText:", "<",
"yank:",
"insertText:", ">",
"setMark:",
"insertText:", "</",
"yank:",
"insertText:", ">",
"swapWithMark:");
/* From TextExtras */
/* Additional Emacs bindings */
"~f" = "moveWordForward:";
"~b" = "moveWordBackward:";
"~<" = "moveToBeginningOfDocument:";
"~>" = "moveToEndOfDocument:";
"~v" = "pageUp:";
"^v" = "pageDown:";
"~d" = "deleteWordForward:";
"~^h" = "deleteWordBackward:";
"~\010" = "deleteWordBackward:"; /* alt-backspace */
"~\177" = "deleteWordBackward:"; /* alt-delete */
"~\UF728" = "deleteWordForward:"; /* Delete */
"\UF729" = "moveToBeginningOfDocument:"; /* Home */
"\UF72B" = "moveToEndOfDocument:"; /* End */
"@\UF729" = "moveToBeginningOfParagraph:"; /* Cmd-Home */
"@\UF72B" = "moveToEndOfParagraph:"; /* Cmd-End */
"\UF72C" = "pageUp:"; /* Page-up */
"\UF72D" = "pageDown:"; /* Page-down */
/* Some useful commands that are not bound by default. */
"~p" = "selectParagraph:";
"~l" = "selectLine:";
"~w" = "selectWord:";
"^u" = "deleteToBeginningOfLine:";
/* Mark-point stuff (Emacs-style mark and point) bindings are implemented
but not bound by default. In the text system the mark and point are
ranges, not just locations. The "point" is the selected range.) */
"^ " = "setMark:";
"^w" = ("selectToMark:", "centerSelectionInVisibleArea:",
"deleteToMark:");
"^x" = {
"^x" = ("swapWithMark:", "selectToMark:",
"centerSelectionInVisibleArea:");
"^m" = ("selectToMark:", "centerSelectionInVisibleArea:");
};
}