conf

view DefaultKeyBinding.dict @ 375:26aed4e65671

cleanup hgrc a bit
author Alexander Solovyov <alexander@solovyov.net>
date Mon Jan 23 18:20:04 2012 +0200
parents
children
line source
1 {
2 /* Modifier keys: start with C-m */
3 "^m" = {
4 "^ " = ("insertText:", "\U2423"); /* C-space space */
6 "^e" = ("insertText:", "\U21A9"); /* C-e return */
7 "e" = ("insertText:", "\U2305"); /* e enter */
9 "^t" = ("insertText:", "\U21E5"); /* C-t tab */
10 "t" = ("insertText:", "\U21E4"); /* t backtab */
12 "^d" = ("insertText:", "\U232B"); /* C-d delete */
13 "d" = ("insertText:", "\U2326"); /* d forward delete */
15 "^a" = ("insertText:", "\U2318"); /* C-a command (apple) */
16 "^o" = ("insertText:", "\U2325"); /* C-o option */
17 "^c" = ("insertText:", "\U2303"); /* C-c control */
18 "s" = ("insertText:", "\U21E7"); /* s shift */
19 "^s" = ("insertText:", "\U21EA"); /* C-s caps lock */
21 "^b" = ("insertText:", "\U2190"); /* C-b solid left */
22 "^f" = ("insertText:", "\U2192"); /* C-f solid right */
23 "^p" = ("insertText:", "\U2191"); /* C-p solid up */
24 "^n" = ("insertText:", "\U2193"); /* C-n solid down */
25 "b" = ("insertText:", "\U21E0"); /* f dotted left */
26 "f" = ("insertText:", "\U21E2"); /* b dotted right */
27 "p" = ("insertText:", "\U21E1"); /* p dotted up */
28 "n" = ("insertText:", "\U21E3"); /* n dotted down */
30 "^h" = ("insertText:", "\U2196"); /* C-h home */
31 "h" = ("insertText:", "\U2198"); /* h end */
32 "^u" = ("insertText:", "\U21DE"); /* C-u page up */
33 "u" = ("insertText:", "\U21DF"); /* u page down */
35 "^x" = ("insertText:", "\U238B"); /* C-x escape */
36 "x" = ("insertText:", "\U23CF"); /* x eject */
37 };
39 /* IncrementalSearchInputManager */
40 "^s" = "ISIM_incrementalSearch:";
41 "^r" = "ISIM_reverseIncrementalSearch:";
42 "^g" = "abort:";
44 "~\Uf700" = "ISIM_handleOptionUpArrow:";
45 "~\Uf701" = "ISIM_handleOptionDownArrow:";
47 /* This command will let Ctrl-Shift-H turn the previous word
48 * into an HTML/XML opening and closing tag pair. */
49 "^H" = ( "setMark:",
50 "moveWordBackward:",
51 "deleteToMark:",
52 "insertText:", "<",
53 "yank:",
54 "insertText:", ">",
55 "setMark:",
56 "insertText:", "</",
57 "yank:",
58 "insertText:", ">",
59 "swapWithMark:");
61 /* From TextExtras */
63 /* Additional Emacs bindings */
64 "~f" = "moveWordForward:";
65 "~b" = "moveWordBackward:";
66 "~<" = "moveToBeginningOfDocument:";
67 "~>" = "moveToEndOfDocument:";
68 "~v" = "pageUp:";
69 "^v" = "pageDown:";
70 "~d" = "deleteWordForward:";
71 "~^h" = "deleteWordBackward:";
72 "~\010" = "deleteWordBackward:"; /* alt-backspace */
73 "~\177" = "deleteWordBackward:"; /* alt-delete */
74 "~\UF728" = "deleteWordForward:"; /* Delete */
75 "\UF729" = "moveToBeginningOfDocument:"; /* Home */
76 "\UF72B" = "moveToEndOfDocument:"; /* End */
77 "@\UF729" = "moveToBeginningOfParagraph:"; /* Cmd-Home */
78 "@\UF72B" = "moveToEndOfParagraph:"; /* Cmd-End */
79 "\UF72C" = "pageUp:"; /* Page-up */
80 "\UF72D" = "pageDown:"; /* Page-down */
82 /* Some useful commands that are not bound by default. */
83 "~p" = "selectParagraph:";
84 "~l" = "selectLine:";
85 "~w" = "selectWord:";
86 "^u" = "deleteToBeginningOfLine:";
88 /* Mark-point stuff (Emacs-style mark and point) bindings are implemented
89 but not bound by default. In the text system the mark and point are
90 ranges, not just locations. The "point" is the selected range.) */
92 "^ " = "setMark:";
93 "^w" = ("selectToMark:", "centerSelectionInVisibleArea:",
94 "deleteToMark:");
95 "^x" = {
96 "^x" = ("swapWithMark:", "selectToMark:",
97 "centerSelectionInVisibleArea:");
98 "^m" = ("selectToMark:", "centerSelectionInVisibleArea:");
99 };
Repositories maintained by Alexander Solovyov