-
Notifications
You must be signed in to change notification settings - Fork 0
/
DefaultKeyBinding.dict
149 lines (138 loc) · 4.82 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
// > defaults write -g NSTextKillRingSize -string 6
"^y" = (yankAndSelect:);
// uppercase current paragraph
"^~U" = (setMark:, selectParagraph:, uppercaseWord:, swapWithMark:);
// lowercase current paragraph
// "^~l" = (setMark:, selectParagraph:, lowercaseWord:, swapWithMark:);
// titlecase paragraph
"^~t" = (setMark:, selectParagraph:, capitalizeWord:, swapWithMark:);
// oooh, emacs
"~f" = "moveWordForward:";
"~b" = "moveWordBackward:";
"~<" = "moveToBeginningOfDocument:";
"~>" = "moveToEndOfDocument:";
"~v" = "pageUp:";
"~d" = "deleteWordForward:";
"~^h" = "deleteWordBackward:";
"~\010" = "deleteWordBackward:";
"~\177" = "deleteWordBackward:";
"^_" = "undo:";
"^ " = "setMark:";
"^\@" = "setMark:";
"^w" = "deleteToMark:";
"~y" = (setMark:, moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, copy:, swapWithMark:);
// cut paragraph
"~x" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, cut:);
// blank line after current
"~o" = (moveToEndOfParagraph:, insertNewline:);
// add new line after this line and go there
"@\U000D" = (moveToEndOfParagraph:, insertNewline:);
// add new line before this line and go there
"@$\U000D" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:);
// repeat character before cursor
// this is a way to keep the lion keyhold menu, but still be able to prints lots of chars
// wheeeeeeeeeee
"~r" = (moveLeftAndModifySelection:, copy:, moveRight:, paste:);
// escape as complete? no thx
// "\033" = "complete:";
"~/" = "complete:";
/* Meta shortcuts */
"~f" = "moveWordForward:"; /* M-f Move forward word */
"~b" = "moveWordBackward:"; /* M-b Move backward word */
"~<" = "moveToBeginningOfDocument:"; /* M-< Move to beginning of document */
"~>" = "moveToEndOfDocument:"; /* M-> Move to end of document */
"~v" = "pageUp:"; /* M-v Page Up */
"~c" = ( "capitalizeWord:", /* M-c Capitalize */
"moveForward:",
"moveForward:");
"~u" = ( "uppercaseWord:", /* M-u Uppercase */
"moveForward:",
"moveForward:");
"~l" = ( "lowercaseWord:", /* M-l Lowercase */
"moveForward:",
"moveForward:");
"~d" = "deleteWordForward:"; /* M-d Delete word forward */
"^~h" = "deleteWordBackward:"; /* M-C-h Delete word backward */
"~\U007F" = "deleteWordBackward:"; /* M-Bksp Delete word backward */
"~t" = "transposeWords:"; /* M-t Transpose words */
"~\@" = ( "setMark:", /* M-@ Mark word */
"moveWordForward:",
"swapWithMark");
"~h" = ( "setMark:", /* M-h Mark paragraph */
"moveToEndOfParagraph:",
"swapWithMark");
/* C-x shortcuts */
"^x" = {
"u" = "undo:";
"k" = "performClose:";
"f" = "openDocument:";
"x" = "swapWithMark:";
"m" = "selectToMark:";
"s" = "saveDocument:";
"w" = "saveDocumentAs:";
};
// COMPOSE KEY OMG
"§" = {
"-" = {
">" = ("insertText:", "→");
"<" = ("insertText:", "←");
"-" = ("insertText:", "—");
"L" = ("insertText:", "£");
};
"*" = {
"*" = ("insertText:", "★");
"8" = ("insertText:", "☆");
};
"." = {
"o" = ("insertText:", "•");
"-" = ("insertText:", "·");
"." = { "." = ("insertText:", "…"); };
};
"<" = {
"3" = ("insertText:", "♥");
"-" = ("insertText:", "←");
};
"1" = {
"1" = {
"0" = ("insertText:", "⅒");
};
"2" = ("insertText:", "½");
"3" = ("insertText:", "⅓");
"4" = ("insertText:", "¼");
"5" = ("insertText:", "⅕");
"6" = ("insertText:", "⅙");
"7" = ("insertText:", "⅐");
"8" = ("insertText:", "⅛");
"9" = ("insertText:", "⅑");
"s" = ("insertText:", "¹");
};
"2" = {
"3" = ("insertText:", "⅔");
"5" = ("insertText:", "⅖");
"s" = ("insertText:", "²");
};
"3" = {
"4" = ("insertText:", "¾");
"5" = ("insertText:", "⅗");
"8" = ("insertText:", "⅜");
"s" = ("insertText:", "³");
};
"4" = {
"5" = ("insertText:", "⅘");
};
"5" = {
"6" = ("insertText:", "⅚");
"8" = ("insertText:", "⅝");
};
"7" = {
"8" = ("insertText:", "⅞");
};
"h" = { "o" = { "o" = { "r" = { "a" = { "y" = ( "insertText:", "🎉" ); }; }; }; }; };
"c" = { "c" = { "c" = { "p" = ("insertText:", "☭"); }; }; };
"u" = { "m" = { "b" = { "r" = { "e" = { "l" = { "l" = { "a" = ( "insertText:", "☂" ); }; }; }; }; }; }; };
"S" = { "|" = ( "insertText:", "$" ); };
":" = { "(" = ( "insertText:", "☹" ); };
"(" = { ":" = ( "insertText:", "🙃" ); };
};
}