-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default (Windows).sublime-keymap
163 lines (136 loc) · 3.13 KB
/
Default (Windows).sublime-keymap
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[
// EnhancedReadline Keymap
// =======================
// Cursor Movement
// ---------------
// * Forward by words `ctrl+f`
{
"keys": ["alt+f"],
"command": "move",
"args": { "by": "wordends", "forward": true }
},
// * Backward by words `ctrl+b`
{
"keys": ["alt+b"],
"command": "move",
"args": { "by": "words", "forward": false }
},
// * Beginning of line (soft) `ctrl+a`
{
"keys": ["ctrl+a"],
"command": "move_to",
"args": { "to": "bol" }
},
// * Beginning of file `alt+p`
{
"keys": ["alt+p"],
"command": "move_to",
"args": { "to": "bof" }
},
// * End of file `alt+n`
{
"keys": ["alt+n"],
"command": "move_to",
"args": { "to": "eof" }
},
// * Forward by words `shift+alt+f`
{
"keys": ["shift+alt+f"],
"command": "move",
"args": { "by": "wordends", "forward": true, "extend": true }
},
// Selection
// ---------
// * Select backward by words `shift+alt+b`
{
"keys": ["shift+alt+b"],
"command": "move",
"args": { "by": "words", "forward": false, "extend": true }
},
// * Select to previous line `shift+ctrl+p`
{
"keys": ["shift+ctrl+p"],
"command": "move",
"args": { "by": "lines", "forward": false, "extend": true }
},
// * Select to end of File `shift+alt+n`
{
"keys": ["shift+alt+n"],
"command": "move_to",
"args": { "to": "eof", "extend": true }
},
// * Select to begining of File `shift+alt+p`
{
"keys": ["shift+alt+p"],
"command": "move_to",
"args": { "to": "bof", "extend": true }
},
// Line editing
// ------------
// * Delete word Forward `alt+d`
{
"keys": ["alt+d"],
"command": "delete_word",
"args": { "forward": true, "sub_words": true }
},
// * Toggle comment `ctrl+/`
{
"keys": ["ctrl+forward_slash"],
"command": "toggle_comment",
"args": { "block": false }
},
// * Join lines `ctrl+j`
{
"keys": ["ctrl+j"],
"command": "join_lines"
},
// Multiple Cursors
// ----------------
// * New Cursor Up `ctrl+alt+p`
{
"keys": ["ctrl+alt+n"],
"command": "select_lines",
"args": { "by": "characters", "forward": true }
},
// * New Cursor Down `ctrl+alt+n`
{
"keys": ["ctrl+alt+p"],
"command": "select_lines",
"args": { "by": "characters", "forward": false }
},
// Line movement
// -------------
// * Swap line Up `ctrl+cmd+p`
{
"keys": ["ctrl+super+p"],
"command": "swap_line_up"
},
// * Swap line Down `ctrl+cmd+n`
{
"keys": ["ctrl+super+n"],
"command": "swap_line_down"
},
// Extra Readline Enhacements
// --------------------------
// * Indent with ctrl instead of super `ctrl+]`
{
"keys": ["ctrl+]"],
"command": "indent"
},
// * Unindent with ctrl instead of super `ctrl+[`
{
"keys": ["ctrl+["],
"command": "unindent"
},
// * Toggle comments with ctrl instead of super `ctrl+/`
{
"keys": ["ctrl+forward_slash"],
"command": "toggle_comment",
"args": { "block": false }
},
// * Toggle fold comments with ctrl instead of super `shift+ctrl+c`
{
"keys": ["ctrl+shift+forward_slash"],
"command": "toggle_fold_comments"
}
]