-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
485 lines (485 loc) · 16.3 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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
{
"name": "selection-utilities",
"displayName": "Selection Utilities",
"publisher": "haberdashPI",
"repository": "https://github.com/haberdashPI/vscode-selection-utilities",
"description": "Kakaune-inspired collection of useful commands for manipulating selections.",
"version": "0.6.10",
"icon": "logo.png",
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"browser": "./dist/web/extension.js",
"contributes": {
"configuration": [
{
"title": "Selection Utilities",
"properties": {
"selection-utilities.primarySelectionColor": {
"type": "string",
"default": "rgba(200,50,50,0.6)",
"pattern": "^(?![\\s\\S])|rgba(\\([0-9]+,[0-9]+,[0-9]+,[0-9.]+\\)|#[0-9a-fA-F]{3,6})",
"patternErrorMessage": "Must be empty (for default), a hex color (#ff0000 for red) or rgba function (rgba(255,0,0,1) for red).",
"description": "A CSS-like color styling for the primary selection color."
},
"selection-utilities.savedSelectionColor": {
"type": "string",
"default": "rgba(50,200,0,0.6)",
"pattern": "^(?![\\s\\S])|rgba(\\([0-9]+,[0-9]+,[0-9]+,[0-9.]+\\)|#[0-9a-fA-F]{3,6})",
"patternErrorMessage": "Must be empty (for default), a hex color (#ff0000 for red) or rgba function (rgba(255,0,0,1) for red).",
"description": "A CSS-like color styling for the saved selection color."
},
"selection-utilities.motionUnits": {
"type": "array",
"description": "Defines a set of named regular expressions to move the cursor by",
"scope": "language-overridable",
"default": [
{
"name": "WORD",
"regex": "[^\\s]+"
},
{
"name": "word",
"regex": "(_*[\\p{L}][_\\p{L}0-9]*)|(_+)|([0-9][0-9.]*)|((?<=[\\s\\r\\n])[^\\p{L}^\\s]+(?=[\\s\\r\\n]))"
},
{
"name": "number",
"regex": "[0-9]+"
},
{
"name": "subword",
"regex": "(_*[\\p{L}][0-9\\p{Ll}]+_*)|(_+)|(\\p{Lu}[\\p{Lu}0-9]+_*(?!\\p{Ll}))|(\\p{L})|([^\\p{L}^\\s^0-9])|([0-9][0-9.]*)"
},
{
"name": "subident",
"regex": "(\\p{L}[0-9\\p{Ll}]+)|([0-9][0-9.]*)"
},
{
"name": "paragraph",
"regexs": "\\S+"
},
{
"name": "section",
"regexs": [
".+",
"^.*========+.*$"
]
},
{
"name": "subsection",
"regexs": [
".+",
"^.*(========+|--------+).*$"
]
}
]
}
}
}
],
"commands": [
{
"command": "selection-utilities.moveBy",
"title": "Move cursor by a given custom unit",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.narrowTo",
"title": "Narrows selections to fall at given word boundaries.",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.exchangeAnchorActive",
"title": "Exchange active and anchor",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.shrinkToActive",
"title": "Shrink selection to active",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.revealActive",
"title": "Reveal the line of the primary cursor's active position",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.activePageMove",
"title": "Move end of selection down a page",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.expandWithinBrackets",
"title": "Expand selection to be within next surrounding brackets",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.expandAroundBrackets",
"title": "Expand selection to be around next surrounding brackets",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.activeAtEnd",
"title": "Active to end",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.activeAtStart",
"title": "Active to start",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.movePrimaryLeft",
"title": "Move primary selection left",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.movePrimaryRight",
"title": "Move primary selection right",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.focusPrimarySelection",
"title": "Focus view on primary selection",
"category": "Selection Utilitiese"
},
{
"command": "selection-utilities.appendToMemory",
"title": "Save to selection memory",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.restoreAndClear",
"title": "Restore from selection memory",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.clearMemory",
"title": "Remove all selection from memory",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.swapWithMemory",
"title": "Swap current selections with saved selections (or save current selections)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.cancelSelection",
"title": "Cancel Selection (end on primary)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.deleteLastSaved",
"title": "Delete last saved selection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.deletePrimary",
"title": "Delete primary selection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.addNext",
"title": "Add next match",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.skipNext",
"title": "Skip to next match",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.addPrev",
"title": "Add previous match",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.skipPrev",
"title": "Skip to previous match",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.trimWhitespace",
"title": "Trim whitespace at start/end of selection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.trimSelectionWhitespace",
"title": "Trim selection to exclude whitespace at start/end",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.splitBy",
"title": "Split selection(s) by string",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.splitByNewline",
"title": "Split selection(s) by newline",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.splitByRegex",
"title": "Split selection(s) by regular expression",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.createBy",
"title": "Create selections by string",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.createByRegex",
"title": "Create selections by regex",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.alignSelectionsLeft",
"title": "Left align selections (using spaces)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.alignSelectionsRight",
"title": "Right align selections (using spaces)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.includeBy",
"title": "Include selections by...",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.excludeBy",
"title": "Exclude selections by...",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextSubword",
"title": "Move Selection to Next Subword",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextSubword",
"title": "Select to Next Subword",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextWord",
"title": "Move Selection to Next Word",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextWord",
"title": "Select to Next Word",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextWORD",
"title": "Move Selection to Next non-whitespace characters",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextWORD",
"title": "Select to Next non-whitespace characters",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextParagraph",
"title": "Move Selection to Next Paragraph",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextParagraph",
"title": "Select to Next Paragraph",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextSubsection",
"title": "Move Selection to Next Subsection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextSubsection",
"title": "Select to Next Subsection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToNextSection",
"title": "Move Selection to Next Section",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToNextSection",
"title": "Select to Next Section",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousSubword",
"title": "Move Selection to Previous Subword",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousSubword",
"title": "Select to Subword",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousWord",
"title": "Move Selection to Previous Word",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousWord",
"title": "Select to Word",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousWORD",
"title": "Move Selection to Previous non-whitespace characters",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousWORD",
"title": "Select to non-whitespace characters",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousParagraph",
"title": "Move Selection to Previous Paragraph",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousParagraph",
"title": "Select to Paragraph",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousSubsection",
"title": "Move Selection to Previous Subsection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousSubsection",
"title": "Select to Subsection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.moveToPreviousSection",
"title": "Move Selection to Previous Section",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.selectToPreviousSection",
"title": "Select to Section",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.includeByRegex",
"title": "Include selections by... (regex)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.excludeByRegex",
"title": "Exclude selections by... (regex)",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.insertAround",
"title": "Insert characters around selections",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.deleteAround",
"title": "Delete characters at start end of selections",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.adjustSelections",
"title": "Adjust selections inwards or outwards",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.incrementNumber",
"title": "Increment Number",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.decrementNumber",
"title": "Decrement Number",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.incrementNumberPerSelection",
"title": "Increment Number Per Selection",
"category": "Selection Utilities"
},
{
"command": "selection-utilities.decrementNumberPerSelection",
"title": "Decrement Number Per Selection",
"category": "Selection Utilities"
}
]
},
"scripts": {
"pretest": "npm run compile-web",
"posttest": "npm run lint",
"vscode:prepublish": "npm run package-web",
"precompile-web": "npm run lint",
"compile-web": "webpack",
"watch-web": "webpack --watch",
"package-web": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint 'test/**/*.mts' 'src/**/*.ts'",
"clean": "gts clean",
"compile": "tsc",
"fix": "gts fix",
"prepare": "npm run compile",
"prewdio:env": "penv wdio",
"prewdio:package": "webpack --env wdio",
"prewdio": "run-s prewdio:*",
"wdio": "wdio run ./wdio.conf.mts > wdio.log; penv base",
"postwdio": "npm run lint",
"precoverage:dir": "mkdir -p coverage/raw",
"precoverage:package": "webpack --env wdio --env coverage",
"precoverage": "run-s prewdio:env precoverage:*",
"coverage": "COVERAGE=true COVERAGE_PATH=./coverage/raw wdio run ./wdio.conf.mts",
"postcoverage:report": "nyc report -t coverage/raw --report-dir coverage/summary --reporter=lcov --reporter=text; penv base",
"postcoverage": "run-s postcoverage:*",
"ci": "npm run coverage"
},
"devDependencies": {
"@types/assert": "^1.5.10",
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.7",
"@types/node": "20.12.7",
"@types/vscode": "^1.92.0",
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"@wdio/cli": "^8.40.5",
"@wdio/local-runner": "^8.40.5",
"@wdio/mocha-framework": "^8.40.3",
"assert": "^2.1.0",
"coverage-istanbul-loader": "^3.0.5",
"eslint": "^8.57.0",
"eslint-webpack-plugin": "^4.2.0",
"gts": "^5.3.1",
"lodash": "^4.17.21",
"mocha": "^10.5.2",
"npm-run-all": "^4.1.5",
"nyc": "^17.0.0",
"penv": "^0.2.0",
"process": "^0.11.10",
"string.prototype.replaceall": "^1.0.10",
"ts-loader": "^9.5.1",
"typescript": "^5.4.3",
"wdio-vscode-service": "^6.0.3",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4",
"@wdio/spec-reporter": "^8.40.3",
"ts-node": "^10.9.2"
}
}