-
Notifications
You must be signed in to change notification settings - Fork 0
/
DefaultKeyBinding.dict
57 lines (49 loc) · 2.84 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
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
* make common symbols and non-english letters.
*/
/* Ctrl shortcuts */
"^y" = "yank:";
"^Y" = "yank:";
"^l" = "centerSelectionInVisibleArea:"; /* C-l Recenter */
//"^/" = "undo:"; /* C-/ Undo */
"^_" = "undo:"; /* C-_ Undo */
"^ " = "setMark:"; /* C-Spc Set mark */
//"^\@" = "setMark:"; /* C-@ Set mark */
/* Incremental search. */
/* Uncomment these lines If Incremental Search IM is installed */
"^s" = "ISIM_incrementalSearch:"; /* C-s Incremental search
"^r" = "ISIM_reverseIncrementalSearch:"; /* C-r Reverse incremental search
"^g" = "abort:"; /* C-g Abort
/* 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 */
"~/" = "complete:"; /* M-/ Complete */
"~d" = "deleteWordForward:"; /* M-d Delete word forward */
"^w" = "deleteWordBackward:"; /* C-w 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:"; /* C-x u Undo */
"^k" = "deleteToMark:"; /* C-x C-k Delete to mark */
"^f" = "openDocument:"; /* C-x C-f Open (find file) */
"^m" = "selectToMark:"; /* C-x C-m Select to mark*/
};
}