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
|
<style>
table { margin-bottom:20px; }
col:nth-child(3) { width:450px; }
col:nth-child(1),col:nth-child(2) { width: 80px !important; }
td:nth-child(1), td:nth-child(2) { font-weight:bold; padding:0 }
</style>
DefaultKeyBindings.dict file for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys]. See Lri's [gists][lrigists] and [website][lriweb] for more coding madness.
[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/
[lriweb]: http://www.cs.helsinki.fi/u/lranta/
[lrigists]: https://gist.github.com/Lri
[brett terpstra]: http://brettterpstra.com
*Grouped items begin with the groups shortcut, followed by the Keys specified. Items separated by commas are sequential, not concurrent.*
| Group | Keys | Function |
| :-------: | :---------------------: | :------------------------------------------------------ |
| | ⌥z | copy character before cursor |
| | ⌥r | repeat character before cursor |
| | ⌥t | transpose characters |
| | ⌥+ | uppercase word |
| | ⌥- | lowercase word |
| | ⌥. | capitalize word |
| | ^w | delete word before cursor |
| | ⌥w | select word |
| | ⌥f | cut word (fold) |
| | ⌥g | copy word (grab) |
| | ⌥h | paste word (hit) |
| | ⌥l | select entire line/paragraph |
| | ⌥s | select from beginning of paragrah to last character |
| | ⌥d | delete line/paragraph |
| | ⌥y | copy paragraph |
| | ⌥x | cut paragraph |
| | ⌥p | paste paragraph below |
| | ⌥⇧P | paste paragraph above |
| | ^⇧A | select to beginning of paragraph and copy |
| | ^⇧E | select to end of paragraph and copy |
| | ⌥q | cut to beginning of paragraph |
| | ⌥k | cut to end of paragraph |
| | ⌥, | move paragraph up a line, inserting blank space after |
| | ⌥␠ | move paragraph to end of document |
| | ⌥o | blank line after current |
| | ⌥⇧O | blank line before current |
| | ⌘⌥/ | comment with "//" |
| | ⌘⌥3 | comment with "#" |
[ All purpose key combos ]
| Group | Keys | Function |
| :---: | :--: | :------- |
| | ⌘⌥b | bold selection |
| | ⌘⌥i | italicize selection |
|^⌘w | ⏎ | force Return |
|^⌘w | ⇥ | force Tab |
|^⌘w | 1-4 | # Headlines |
|^⌘w | l,t | link text `"[selected text]( | )"` |
|^⌘w | l,c | clipboard link `"[ | selected text](clipboard contents)"` |
|^⌘w | i,t | image, selection as alt `""` |
|^⌘w | i,c | clipboard image `""` |
|^⌘w | :,t | create a reference from selected text |
|^⌘w | :,c | create a reference from selected text, clipboard as url |
|^⌘w | [ | insert reference link |
|^⌘w | +\|-\|* | lists |
|^⌘w | =,⌥⇧L | new list item after current |
|^⌘w | e | entity |
|^⌘w | =,/ | http:// |
[ Markdown-specific shortcuts (^⌘W) ]
| Group | Keys | Function |
| :---: | :--: | :------- |
|^⌘s | ( | wrap () with spaces |
|^⌘s | ) | wrap () no spaces |
|^⌘s | \[ | wrap [] with spaces |
|^⌘s | \] | wrap [] no spaces |
|^⌘s | { | wrap {} with spaces |
|^⌘s | } | wrap {} no spaces |
|^⌘s | < | wrap <> with spaces |
|^⌘s | > | wrap <> no spaces |
|^⌘s | ' | wrap single quotes |
|^⌘s | ` | wrap backticks |
|^⌘s | " | wrap double quote |
[ Surround (^⌘s) ]
| Group | Keys | Function |
| :---: | :--: | :------- |
| | ^⌘k | move line up |
| | ^⌘j | move line down |
| | ^⌘l | indent line |
| | ^⌘h | outdent line (all the way) |
| | ^⌥k | copy line and paste above |
| | ^⌥j | copy line and paste below |
| | ⌘⌥ꜛ| modify selection up |
| | ⌘⌥ꜜ| modify selection down |
| | ⌘␡ | Forward delete to end of paragraph |
[ List/Paragraph motion ]
| Group | Keys | Function |
| :---: | :-----------: | :--------------- |
| | PgUp | Page Up |
| | PgDown | Page Down |
| | ⌥PgUp | Scroll up |
| | ⌥PgDown| Scroll Down |
| | ⌥1 | bookmark |
| | ⌥2 | jump to bookmark |
[ Document navigation ]
|