-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
337 lines (337 loc) · 13.6 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
{
"name": "select-by",
"displayName": "Select By",
"description": "Select text range based on certain criteria (regex,...) and move cursor by regex",
"publisher": "rioj7",
"license": "MIT",
"version": "1.20.1",
"engines": {"vscode": "^1.55.0"},
"categories": ["Other"],
"keywords": ["select","text","range","move","cursor","multi","find"],
"icon": "images/icon.png",
"galleryBanner": {"color": "#000080", "theme": "dark"},
"activationEvents": [
"onCommand:selectby.regex1",
"onCommand:selectby.regex2",
"onCommand:selectby.regex3",
"onCommand:selectby.regex4",
"onCommand:selectby.regex5",
"onCommand:selectby.regex",
"onCommand:selectby.pasteClipboard",
"onCommand:selectby.lineNr",
"onCommand:selectby.removeCursorBelow",
"onCommand:selectby.removeCursorAbove",
"onCommand:selectby.swapActive",
"onCommand:selectby.anchorAndActiveSeparate",
"onCommand:selectby.anchorAndActiveByRegex",
"onCommand:selectby.mark",
"onCommand:selectby.mark-restore",
"onCommand:selectby.addNewSelection",
"onCommand:selectby.moveLastSelection",
"onCommand:selectby.moveLastSelectionActive",
"onCommand:selectby.moveSelections",
"onCommand:selectby.addSelectionToNextFindMatchMultiCursor",
"onCommand:moveby.regex",
"onCommand:moveby.calculation",
"onCommand:selectby.addNewSelectionAtOffset"
],
"contributes": {
"commands": [
{
"command": "selectby.regex1",
"title": "Select text range based on regex 1",
"category": "SelectBy"
},
{
"command": "selectby.regex2",
"title": "Select text range based on regex 2",
"category": "SelectBy"
},
{
"command": "selectby.regex3",
"title": "Select text range based on regex 3",
"category": "SelectBy"
},
{
"command": "selectby.regex4",
"title": "Select text range based on regex 4",
"category": "SelectBy"
},
{
"command": "selectby.regex5",
"title": "Select text range based on regex 5",
"category": "SelectBy"
},
{
"command": "selectby.regex",
"title": "Select text range based on regex",
"category": "SelectBy"
},
{
"command": "selectby.pasteClipboard",
"title": "Paste clipboard and select",
"category": "SelectBy"
},
{
"command": "selectby.lineNr",
"title": "Place cursor based on line number, uses boolean expression",
"category": "SelectBy"
},
{
"command": "selectby.removeCursorBelow",
"title": "Remove Cursor from Below",
"category": "SelectBy"
},
{
"command": "selectby.removeCursorAbove",
"title": "Remove Cursor from Above",
"category": "SelectBy"
},
{
"command": "selectby.swapActive",
"title": "Swap the anchor and active (cursor) position of the selection(s)",
"category": "SelectBy"
},
{
"command": "selectby.anchorAndActiveSeparate",
"title": "Create separate cursors for anchor and active position of the selection(s)",
"category": "SelectBy"
},
{
"command": "selectby.anchorAndActiveByRegex",
"title": "Modify the anchor and active position of the selection(s)",
"category": "SelectBy"
},
{
"command": "selectby.mark",
"title": "Mark position of cursor(s), create selection(s) on next mark",
"category": "SelectBy"
},
{
"command": "selectby.mark-restore",
"title": "Restore the position of the cursors to the marked location",
"category": "SelectBy"
},
{
"command": "selectby.addNewSelection",
"title": "Add a new selection at an offset (default: 1)",
"category": "SelectBy"
},
{
"command": "selectby.moveLastSelectionActive",
"title": "Modify (extend/reduce) the last selection by moving the Active position \"offset\" of characters left/right (default: 1)",
"category": "SelectBy"
},
{
"command": "selectby.moveLastSelection",
"title": "Move the last selection number of characters left/right (default: 1)",
"category": "SelectBy"
},
{
"command": "selectby.addSelectionToNextFindMatchMultiCursor",
"title": "Add Selection To Next Find Match - Multi Cursor",
"category": "SelectBy"
},
{
"command": "moveby.regex",
"title": "Move cursor based on regex",
"category": "MoveBy"
},
{
"command": "moveby.calculation",
"title": "Move cursor based on calculation by keybinding",
"category": "MoveBy"
}
],
"configuration": {
"title": "Select By",
"properties": {
"selectby.regexes": {
"type": "object",
"scope": "resource",
"description": "Object with parameters for the different regexes",
"default": {},
"patternProperties": {
"^.+$": {
"type": "object",
"properties": {
"flags": {
"type": "string",
"description": "(Optional) string with the regex flags \"i\" and/or \"m\" (default: \"\")"
},
"backward": {
"type": ["string", "boolean"],
"description": "(Optional) regular expression to search from the selection start (or cursor) to the start of the file, or false (to override User setting)"
},
"forward": {
"type": ["string", "boolean"],
"description": "(Optional) regular expression to search for from the selection end (or cursor) to the end of the file, or false (to override User setting)"
},
"forwardAllowCurrentPosition": {
"type": "boolean",
"description": "(Optional) is the current selection end an allowed forward position (default: true)"
},
"forwardShrink": {
"type": "boolean",
"description": "(Optional) do we reduce (shrink) at the current selection end. Find previous \"forward\" regular expression relative to selection end. (default: false)"
},
"backwardAllowCurrentPosition": {
"type": "boolean",
"description": "(Optional) is the current selection start an allowed backward position (default: true)"
},
"backwardShrink": {
"type": "boolean",
"description": "(Optional) do we reduce (shrink) at the current selection start. Find next \"backward\" regular expression relative to selection start. (default: false)"
},
"forwardNext": {
"type": ["string", "boolean"],
"description": "(Optional) regular expression to search for starting at the end of the forward search to the end of the file, or false (to override User setting)"
},
"backwardInclude": {
"type": "boolean",
"description": "(Optional) should the matched backward search text be part of the selection (default: true)"
},
"forwardInclude": {
"type": "boolean",
"description": "(Optional) should the matched forward search text be part of the selection (default: true)"
},
"forwardNextInclude": {
"type": "boolean",
"description": "(Optional) should the matched forwardNext search text be part of the selection (default: true)"
},
"forwardNextExtendSelection": {
"type": "boolean",
"description": "(Optional) should we extend the selection with the matched forwardNext search text if the begin of the selection matches the forward regex (default: false)"
},
"surround": {
"type": ["string", "boolean"],
"description": "(Optional) regular expression to search around the current selection, the selection is somewhere in the text to select, or false (to override User setting)"
},
"copyToClipboard": {
"type": "boolean",
"description": "(Optional) copy the selection to the clipboard (default: false)"
},
"showSelection": {
"type": "boolean",
"description": "(Optional) modify the selection to include the new searched positions. Useful if `copyToClipboard` is true. (default: true)"
},
"debugNotify": {
"type": "boolean",
"description": "(Optional) show a notify message of the used search properties (User and Workspace properties are merged) (default: false)"
},
"moveby": {
"type": "string",
"description": "(Optional) regular expression to search for, Used only by moveby.regex"
},
"label": {
"type": "string",
"description": "(Optional) Label to use in the QuickPick list for the command selectby.regex"
},
"description": {
"type": "string",
"description": "(Optional) Description to use in the QuickPick list on the same line for the command selectby.regex"
},
"detail": {
"type": "string",
"description": "(Optional) Detail to use in the QuickPick list on a separate line for the command selectby.regex"
}
},
"dependencies": {
"backwardInclude": ["backward"],
"backwardShrink": ["backward"],
"forwardInclude": ["forward"],
"forwardShrink": ["forward"],
"backwardAllowCurrentPosition": ["backward"],
"forwardAllowCurrentPosition": ["forward"],
"forwardNextInclude": ["forwardNext"],
"forwardNextExtendSelection": ["forwardNext"]
}
}
},
"additionalProperties": false
},
"moveby.revealType": {
"type": "string",
"scope": "resource",
"description": "How to reveal the cursor if it moves outside visible range.",
"default": "Default",
"enum": ["AtTop", "Default", "InCenter", "InCenterIfOutsideViewport"]
},
"moveby.regexes": {
"type": "object",
"scope": "resource",
"description": "Object with parameters for the different regexes",
"default": {},
"patternProperties": {
"^.+$": {
"type": ["object", "array"],
"properties": {
"flags": {
"type": "string",
"description": "(Optional) string with the regex flags \"i\" and/or \"m\" (default: \"\")"
},
"regex": {
"type": "string",
"description": "(Optional) the regex to use, if not given ask for a regex"
},
"ask": {
"type": "boolean",
"description": "(Optional) ask for a regex if \"regex\" property not given"
},
"properties": {
"type": "array",
"description": "(Optional) strings that determine how to use the regex: next/prev, start/end, wrap/nowrap (default: [\"next\", \"end\", \"nowrap\"])",
"items": {
"enum": ["next", "prev", "start", "end", "wrap", "nowrap"]
},
"uniqueItems": true
},
"repeat": {
"type": ["integer", "string"],
"description": "(Optional) how many times to perform the search, or \"ask\" (default: 1)"
},
"checkCurrent": {
"type": "boolean",
"description": "(Optional) check if current cursor position is a possible match (default: false)"
},
"debugNotify": {
"type": "boolean",
"description": "(Optional) show a notify message of the used search properties (User and Workspace properties are merged) (default: false)"
},
"label": {
"type": "string",
"description": "(Optional) Label to use in the QuickPick list for the command selectby.regex"
},
"description": {
"type": "string",
"description": "(Optional) Description to use in the QuickPick list on the same line for the command selectby.regex"
},
"detail": {
"type": "string",
"description": "(Optional) Detail to use in the QuickPick list on a separate line for the command selectby.regex"
}
}
}
}
}
}
}
},
"main": "./extension.js",
"browser": "./extension.js",
"homepage": "https://github.com/rioj7/select-by",
"bugs": {
"url": "https://github.com/rioj7/select-by/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/rioj7/select-by.git"
},
"devDependencies": {
"@types/assert": "^1.5.4",
"@types/mocha": "^8.2.1",
"glob": "^7.1.6",
"mocha": "^8.3.0",
"simple-mock": "^0.8.0"
}
}