-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
328 lines (328 loc) · 8.03 KB
/
package.json
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
{
"name": "vscode-modaledit",
"displayName": "ModalEdit",
"description": "Configurable modal editing engine with built-in Vim keymaps",
"version": "2.1.0",
"publisher": "johtela",
"engines": {
"vscode": "^1.47.0"
},
"repository": {
"url": "https://github.com/johtela/vscode-modaledit"
},
"license": "MPL-2.0",
"categories": [
"Keymaps",
"Other"
],
"homepage": "https://johtela.github.io/vscode-modaledit",
"activationEvents": [
"*"
],
"icon": "images/normal.jpg",
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "ModalEdit",
"properties": {
"modaledit.keybindings": {
"type": "object",
"description": "Keybindings map key → VS Code commands",
"default": {},
"patternProperties": {
"^.([\\-,].)*$": {
"anyOf": [
{
"type": "string",
"description": "VS Code command"
},
{
"type": "array",
"description": "Sequence of commands",
"items": {
"anyOf": [
{
"type": "object",
"description": "Action"
},
{
"type": "string",
"description": "VS Code command"
}
]
}
},
{
"type": "object",
"description": "VS Code command with arguments",
"properties": {
"command": {
"type": "string",
"description": "VS Code command"
},
"args": {
"description": "Command arguments",
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
}
}
},
{
"type": "object",
"description": "Conditional command",
"properties": {
"condition": {
"type": "string",
"description": "JavaScript expression that is evaluated"
}
}
},
{
"type": "number",
"description": "Keymap id"
}
]
}
}
},
"modaledit.selectbindings": {
"type": "object",
"description": "Keybindings used when selection is active",
"default": {},
"patternProperties": {
"^.([\\-,].)*$": {
"anyOf": [
{
"type": "string",
"description": "VS Code command"
},
{
"type": "array",
"description": "Sequence of commands",
"items": {
"anyOf": [
{
"type": "object",
"description": "Action"
},
{
"type": "string",
"description": "VS Code command"
}
]
}
},
{
"type": "object",
"description": "VS Code command with arguments",
"properties": {
"command": {
"type": "string",
"description": "VS Code command"
},
"args": {
"description": "Command arguments",
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
}
}
},
{
"type": "object",
"description": "Conditional command",
"properties": {
"condition": {
"type": "string",
"description": "JavaScript expression that is evaluated"
}
}
},
{
"type": "number",
"description": "Keymap id"
}
]
}
}
},
"modaledit.insertCursorStyle": {
"type": "string",
"enum": [
"block",
"block-outline",
"line",
"line-thin",
"underline",
"underline-thin"
],
"default": "line",
"description": "Shape of the cursor when in insert mode."
},
"modaledit.normalCursorStyle": {
"type": "string",
"enum": [
"block",
"block-outline",
"line",
"line-thin",
"underline",
"underline-thin"
],
"default": "block",
"description": "Shape of the cursor when in normal mode."
},
"modaledit.searchCursorStyle": {
"type": "string",
"enum": [
"block",
"block-outline",
"line",
"line-thin",
"underline",
"underline-thin"
],
"default": "underline",
"description": "Shape of the cursor when incremental search is active."
},
"modaledit.selectCursorStyle": {
"type": "string",
"enum": [
"block",
"block-outline",
"line",
"line-thin",
"underline",
"underline-thin"
],
"default": "line-thin",
"description": "Shape of the cursor when selection is active in normal mode."
},
"modaledit.insertStatusText": {
"type": "string",
"default": "-- $(edit) INSERT --",
"description": "Mode text (and icons) shown in status bar in insert mode."
},
"modaledit.insertStatusColor": {
"type": "string",
"description": "Color of the status bar mode text in insert mode (in HTML format)."
},
"modaledit.normalStatusText": {
"type": "string",
"default": "-- $(move) NORMAL --",
"description": "Mode text (and icons) shown in status bar in normal mode."
},
"modaledit.normalStatusColor": {
"type": "string",
"description": "Color of the status bar mode text in normal mode (in HTML format)."
},
"modaledit.searchStatusText": {
"type": "string",
"default": "$(search) SEARCH",
"description": "Mode text (and icons) shown in status bar in search mode."
},
"modaledit.searchStatusColor": {
"type": "string",
"description": "Color of the status bar mode text when in search mode (in HTML format)."
},
"modaledit.selectStatusText": {
"type": "string",
"default": "-- $(paintcan) VISUAL --",
"description": "Mode text (and icons) shown in status bar selection is active in normal mode."
},
"modaledit.selectStatusColor": {
"type": "string",
"description": "Color of the status bar mode text when selection is active in normal mode (in HTML format)."
},
"modaledit.startInNormalMode": {
"type": "boolean",
"default": true,
"description": "Is editor initially in normal mode?"
}
}
},
"commands": [
{
"command": "modaledit.toggle",
"title": "ModalEdit: Toggle normal / insert mode"
},
{
"command": "modaledit.enterNormal",
"title": "ModalEdit: Normal mode"
},
{
"command": "modaledit.enterInsert",
"title": "ModalEdit: Insert mode"
},
{
"command": "modaledit.defineBookmark",
"title": "ModalEdit: Define bookmark"
},
{
"command": "modaledit.goToBookmark",
"title": "ModalEdit: Go to bookmark"
},
{
"command": "modaledit.showBookmarks",
"title": "ModalEdit: Show bookmarks"
},
{
"command": "modaledit.cancelSearch",
"title": "ModalEdit: Cancel search mode"
},
{
"command": "modaledit.deleteCharFromSearch",
"title": "ModalEdit: Delete the last search character"
},
{
"command": "modaledit.importPresets",
"title": "ModalEdit: Import preset keybindings"
}
],
"keybindings": [
{
"key": "Escape",
"command": "modaledit.enterNormal",
"when": "editorTextFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible"
},
{
"key": "Escape",
"command": "modaledit.cancelSearch",
"when": "editorTextFocus && modaledit.searching"
},
{
"key": "Backspace",
"command": "modaledit.deleteCharFromSearch",
"when": "editorTextFocus && modaledit.searching"
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^13.13.15",
"@types/vscode": "^1.47.0",
"ts-loader": "^6.2.2",
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {}
}