Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
188 lines (188 loc) · 6.08 KB
/
Copy pathpackage.json
File metadata and controls
188 lines (188 loc) · 6.08 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
{
"name": "range-transform",
"displayName": "Range & Transform",
"description": "Fill multi-selections with a sequence (2:9, Mon:Fri:2, 一:十), or rewrite them with a JavaScript expression (n*3, *3, upper) — with a live inline diff preview.",
"version": "0.0.1",
"publisher": "tomchen",
"author": "Tom Chen <tomchen.org@gmail.com>",
"license": "MIT",
"icon": "icon.png",
"packageManager": "bun@1.3.10",
"engines": {
"vscode": "^1.103.0"
},
"extensionKind": [
"ui",
"workspace"
],
"categories": [
"Formatters",
"Other"
],
"keywords": [
"range",
"sequence",
"increment",
"transform",
"conversion",
"selection",
"multi-cursor",
"multi-selection",
"number",
"numeral",
"roman",
"chinese",
"french",
"date",
"letter",
"insert"
],
"homepage": "https://toolsu.com/range-transform/",
"bugs": {
"url": "https://github.com/toolsu/vscode-range-transform/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/toolsu/vscode-range-transform.git"
},
"main": "./dist/extension.js",
"activationEvents": [],
"capabilities": {
"untrustedWorkspaces": {
"supported": true,
"description": "The extension only rewrites text in the active editor, and only ever evaluates expressions typed by the user during the current session. It never reads or executes workspace content."
},
"virtualWorkspaces": true
},
"contributes": {
"commands": [
{
"command": "range-transform.insertSequence",
"title": "Insert Sequence from Range",
"category": "Range & Transform"
},
{
"command": "range-transform.transform",
"title": "Transform Selections",
"category": "Range & Transform"
},
{
"command": "range-transform.transformAdvanced",
"title": "Transform Selections (Advanced)",
"category": "Range & Transform"
},
{
"command": "range-transform.internal.applyScratch",
"title": "Apply Transform",
"category": "Range & Transform",
"icon": "$(check)"
},
{
"command": "range-transform.internal.cancelScratch",
"title": "Cancel Transform",
"category": "Range & Transform",
"icon": "$(close)"
}
],
"menus": {
"commandPalette": [
{
"command": "range-transform.internal.applyScratch",
"when": "false"
},
{
"command": "range-transform.internal.cancelScratch",
"when": "false"
}
],
"editor/title": [
{
"command": "range-transform.internal.applyScratch",
"group": "navigation@1",
"when": "rangeTransform.scratchOpen && resourceScheme == file && resourceFilename =~ /^rt-transform-/"
},
{
"command": "range-transform.internal.cancelScratch",
"group": "navigation@2",
"when": "rangeTransform.scratchOpen && resourceScheme == file && resourceFilename =~ /^rt-transform-/"
}
]
},
"keybindings": [
{
"command": "range-transform.internal.applyScratch",
"key": "ctrl+enter",
"mac": "cmd+enter",
"when": "editorTextFocus && rangeTransform.scratchOpen && resourceScheme == file && resourceFilename =~ /^rt-transform-/"
}
],
"configuration": {
"title": "Range & Transform",
"properties": {
"rangeTransform.defaultSequenceLength": {
"type": "integer",
"default": 10,
"minimum": 1,
"maximum": 10000,
"scope": "language-overridable",
"description": "How many items to generate when there is a single cursor and the range has no stop value. A count, so it must be a whole number."
},
"rangeTransform.preview.maxLength": {
"type": "integer",
"default": 120,
"minimum": 10,
"maximum": 10000,
"scope": "language-overridable",
"description": "Maximum number of characters shown per item in the inline preview. Longer results are truncated with an ellipsis."
},
"rangeTransform.rememberLastInput": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Pre-fill the input box with the last accepted range or expression. Window-scoped on purpose: the input box belongs to the window, not to the file that happens to be open."
}
}
}
},
"scripts": {
"gen": "bun scripts/genDts.ts",
"postinstall": "bun run gen",
"compile": "bun run gen && node esbuild.js",
"compile:prod": "bun run gen && node esbuild.js --production",
"compile:e2e": "bun run gen && tsc -p tsconfig.e2e.json",
"check-bundle": "bun run gen && node esbuild.js --production --check",
"vscode:prepublish": "bun run check-bundle",
"watch": "bun run gen && bun run --parallel 'watch:*'",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"check-types": "bun run gen && tsc --noEmit && tsc --noEmit -p tsconfig.globals.json",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "bun run test:unit && bun run test:e2e",
"test:unit": "bun test src/test",
"test:e2e": "bun run compile && bun run compile:e2e && vscode-test",
"test:clean": "rimraf .vscode-test out dist && bun run test",
"checkall": "bun run check-types && bun run lint && bun run format:check && bun run test:unit && bun run check-bundle",
"vsix": "bunx @vscode/vsce package --no-dependencies"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/bun": "^1.3.14",
"@types/mocha": "^10.0.10",
"@types/node": "^22.19.2",
"@types/vscode": "1.103.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.1.0",
"esbuild": "^0.28.1",
"eslint": "^10.8.0",
"globals": "^17.8.0",
"prettier": "^3.9.6",
"rimraf": "^6.1.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.65.0"
},
"dependencies": {
"convnum": "^1.0.0"
}
}