-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
308 lines (308 loc) · 8.52 KB
/
package.json
File metadata and controls
308 lines (308 loc) · 8.52 KB
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
{
"name": "insertnums",
"version": "1.1.0",
"publisher": "volkerdobler",
"displayName": "Insert Sequences",
"description": "Insert sequences of any kind (numberic, alpha, expressions, etc.) to VSCode textdocuments",
"keywords": [
"sequences",
"numbers",
"insert",
"alphachars",
"expressions",
"frequencies",
"insertnums",
"insertseq",
"insertsequences"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/volkerdobler/insertseq/issues",
"email": "vscode.insertsequences.ext@volker-dobler.de"
},
"homepage": "https://github.com/volkerdobler/insertseq/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/volkerdobler/insertseq.git"
},
"engines": {
"vscode": "^1.120.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
"files": [
"dist",
"README.md",
"CHANGELOG.md",
"LICENSE.md",
"EXAMPLES.md",
"WHATSNEW*.md",
"package.json",
"insertseq.png"
],
"contributes": {
"configuration": {
"title": "insertseq",
"properties": {
"insertseq.start": {
"type": "string",
"default": "1",
"description": "Default start"
},
"insertseq.step": {
"type": "string",
"default": "1",
"description": "Default increment"
},
"insertseq.repetition": {
"type": "string",
"default": "",
"description": "Default repetition"
},
"insertseq.frequency": {
"type": "string",
"default": "1",
"description": "Default frequency"
},
"insertseq.startover": {
"type": "string",
"default": "",
"description": "Start sequence from beginning, independent of repetition and frequency"
},
"insertseq.numberFormat": {
"type": "string",
"default": "",
"description": "Default output format for numbers"
},
"insertseq.stringFormat": {
"type": "string",
"default": "",
"description": "Default output format for strings"
},
"insertseq.dateFormat": {
"type": "string",
"default": "",
"description": "Default output format for dates"
},
"insertseq.alphaCapital": {
"type": "string",
"default": "preserve",
"enum": [
"preserve",
"upper",
"lower",
"pascal"
],
"enumDescriptions": [
"preserve (default): preserve chars as insert",
"upper: output all chars as upper letters",
"lower: output all chars as lower letters",
"pascal: output first letter as upper letter, rest as lower letters"
],
"description": "Default output in alpha sequences"
},
"insertseq.language": {
"type": "string",
"default": "",
"description": "Default language format for dates"
},
"insertseq.insertOrder": {
"type": "string",
"default": "cursor",
"description": "Default order of insertion",
"enum": [
"cursor",
"sorted",
"reverse"
],
"enumdescription": [
"cursor (default): insertion is based on multi cursor click order",
"sorted: insertion is from top most click down",
"reverse: insertion is from bottom most click up"
]
},
"insertseq.century": {
"type": "string",
"default": "20",
"description": "Default century if year has only 2 digits - default: 20"
},
"insertseq.centerString": {
"type": "string",
"default": "l",
"enum": [
"l",
"r"
],
"enumdescription": [
"l (default): e.g. a 1 char string centered in a 4 char field is left oriented (placed at position 2)",
"r: e.g. a 1 char string centered in a 4 char field is right oriented (placed at position 3)"
]
},
"insertseq.dateStepUnit": {
"type": "string",
"default": "d",
"description": "Default unit as date step",
"enum": [
"d",
"w",
"m",
"y"
],
"enumdescription": [
"d (default): days",
"w: weeks",
"m: months",
"y: years"
]
},
"insertseq.delimiter": {
"type": "string",
"default": "",
"description": "Delimiter, for additional insertations"
},
"insertseq.alphabet": {
"type": "string",
"default": "abcdefghijklmnopqrstuvwxyz",
"description": "Alphabet, for string successors"
},
"insertseq.mysequences": {
"type": "array",
"default": [
[
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
],
[
"foo",
"bar",
"foz"
]
],
"description": "Own defined Sequences (Array of arrays)"
},
"insertseq.myfunctions": {
"type": "array",
"default": [
"(i, start=1, step=1) => start + (i ** step)",
"(i) => Math.PI.toString().split('').splice(i,1)"
],
"description": "Own defined Functions (Array of functions) - function arguments are (i, start, step, frequency, repeat, startover), where i is the zero-based index of the insertion, start is the start value, step is the step value, frequency is the frequency value, repeat is the repetition value, and startover is the startover value (all beside i are optional, if you use them, give default values)"
},
"insertseq.defaultFunctionNr": {
"type": "number",
"default": 1,
"description": "Default function number (1 = first function in 'myfunctions' list)"
},
"insertseq.radixPrefix": {
"type": "boolean",
"default": false,
"description": "Whether to use radix prefixes (0b, 0o, 0x) when inserting numbers in binary, octal, or hexadecimal format"
},
"insertseq.previewColor": {
"type": "string",
"default": "#888888",
"description": "Color of preview decoration"
},
"insertseq.previewStatus": {
"type": "boolean",
"default": true,
"description": "Show preview of insertions"
},
"insertseq.maxInsertions": {
"type": "number",
"default": 10000,
"description": "Maximum number of insertions to avoid performance issues - internal variable, be aware what you are doing if you change it"
},
"insertseq.maxHistoryItems": {
"type": "number",
"default": 100,
"description": "Maximum items stored in history"
},
"insertseq.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug output"
}
}
},
"commands": [
{
"command": "extension.insertseq",
"title": "Insert Sequences"
},
{
"command": "extension.insertseq.history",
"title": "Insert Sequences-History"
}
],
"keybindings": [
{
"command": "extension.insertseq",
"key": "ctrl+alt+.",
"mac": "cmd+alt+.",
"when": "editorTextFocus"
},
{
"command": "extension.insertseq.history",
"key": "ctrl+alt+,",
"mac": "cmd+alt+,",
"when": "editorTextFocus"
}
]
},
"scripts": {
"check-types": "tsc --noEmit",
"clean": "rimraf ./dist/* -g",
"compile:desk": "tsc -p ./",
"compile:web": "tsc -p ./",
"compile:all": "npm run clean && npm run compile:desk",
"build:desk": "npm run check-types && npm run lint && node esbuild.js --production",
"build:web": "npm run check-types && npm run lint && node esbuild-web.js --production",
"build:all": "npm run clean && npm run build:desk",
"lint": "eslint src --ext .ts",
"watch:desk": "tsc -watch -p ./",
"watch:web": "tsc -watch -project tsconfig.json & node esbuild-web.js --watch",
"watch:all": "npm run clean && npm-run-all --parallel watch:desk watch:web",
"run-in-browser": "vscode-test-web --browserType=chromium ./dist/extension.js",
"vscode:prepublish": "npm run build:all"
},
"dependencies": {
"d3-format": "^3.1.0",
"eval5": "^1.4.8",
"temporal-polyfill": "^0.3.0"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@types/d3-format": "^3.0.4",
"@types/node": "^25.0.0",
"@types/vscode": "^1.105.0",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vscode/test-web": "^0.0.80",
"esbuild": "^0.28.0",
"eslint": "^10.0.0",
"eslint-plugin-prettier": "^5.5.4",
"glob": "^13.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"typescript": "^6.0.3"
},
"icon": "insertseq.png",
"galleryBanner": {
"color": "#5757ff",
"theme": "dark"
}
}