-
Notifications
You must be signed in to change notification settings - Fork 234
/
Default.sublime-keymap
179 lines (178 loc) · 6.43 KB
/
Default.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[
{
"keys": [ "ctrl+t", "ctrl+d" ],
"command": "typescript_go_to_definition",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "f12" ],
"command": "typescript_go_to_definition",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+f" ],
"command": "typescript_format_selection",
"context": [
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+alt+r"],
"command": "typescript_nav_to",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+f" ],
"command": "typescript_format_document",
"context": [
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+m" ],
"command": "typescript_rename",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+n" ],
"command": "typescript_next_ref",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+n" ],
"command": "typescript_next_ref",
"context": [
{ "key": "selector", "operator": "equal", "operand": "text.find-refs" }
]
},
{
"keys": [ "ctrl+t", "ctrl+p" ],
"command": "typescript_prev_ref",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+p" ],
"command": "typescript_prev_ref",
"context": [
{ "key": "selector", "operator": "equal", "operand": "text.find-refs" }
]
},
{
"keys": [ "ctrl+t", "ctrl+q" ],
"command": "typescript_quick_info_doc",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+r" ],
"command": "typescript_find_references",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+s" ],
"command": "typescript_save",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+t", "ctrl+o" ],
"command": "typescript_signature_panel",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": ["("],
"command": "typescript_signature_popup",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
{ "key": "paren_pressed"}
]
},
{
"keys": ["alt+down"],
"command": "typescript_signature_popup",
"args": {"move": "next"},
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
{ "key": "is_popup_visible"}
]
},
{
"keys": ["alt+up"],
"command": "typescript_signature_popup",
"args": {"move": "prev"},
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
{ "key": "is_popup_visible"}
]
}, // In case when auto match is enabled, only format if not within {}
{
"keys": [ "alt+,"],
"command": "typescript_signature_popup",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
{ "key": "tooltip_supported", "operator": "equal", "operand": true}
]
},
{
"keys": [ "enter" ],
"command": "typescript_go_to_ref",
"context": [
{ "key": "selector", "operator": "equal", "operand": "text.find-refs" }
]
},
{
"keys": [ "enter" ],
"command": "typescript_go_to_error",
"context": [
{ "key": "selector", "operator": "equal", "operand": "text.error-list" }
]
},
{
"keys": [ "enter" ],
"command": "typescript_auto_indent_on_enter_between_curly_brackets",
"context": [
{ "key": "setting.typescript_auto_indent", "operator": "equal", "operand": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "selection_empty", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$" },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}" },
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+;" ],
"command": "typescript_format_line",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
},
{
"keys": [ "ctrl+shift+]" ],
"command": "typescript_format_brackets",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
]
}
]