-
Notifications
You must be signed in to change notification settings - Fork 4
/
DefaultKeyBinding.dict
54 lines (52 loc) · 2.24 KB
/
DefaultKeyBinding.dict
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
/* Adapted from http://www.hcs.harvard.edu/~jrus/site/KeyBindings/Emacs%20Opt%20Bindings.dict
* Available commands: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding
* Place in ~/Library/KeyBindings, making directory if necesary
* Symlink will not work, but see https://apple.stackexchange.com/a/224074 for git hook workaround
*/
{
/* Navigation */
"~f" = "moveWordForward:"; /* M-f */
"~b" = "moveWordBackward:"; /* M-b */
"~n" = ( "moveDown:", /* M-n */
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:",
"moveDown:");
"~p" = ( "moveUp:", /* M-p */
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:",
"moveUp:");
"~v" = "pageUp:"; /* M-v */
"^v" = "pageDown:"; /* C-v */
"~<" = "moveToBeginningOfDocument:"; /* M-< */
"~>" = "moveToEndOfDocument:"; /* M-> */
/* Editing */
"~d" = "deleteWordForward:"; /* M-d */
"~\010" = "deleteWordBackward:"; /* M-DEL */
"^u" = "undo:"; /* C-u */
"~c" = ( "capitalizeWord:", /* M-c */
"moveRight:");
"~u" = ( "uppercaseWord:", /* M-u */
"moveRight:");
"~l" = ( "lowercaseWord:", /* M-l */
"moveRight:");
"^t" = "transpose:"; /* C-t */
"~t" = "transposeWords:"; /* M-t */
"^g" = "_cancelKey:"; /* C-g */
"^ " = "setMark:"; /* C-SPC */
"^w" = "deleteToMark:"; /* C-w */
"~w" = ( "selectToMark:", /* M-w */
"copy:",
"swapWithMark:");
}