-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
344 lines (344 loc) · 11 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
{
"name": "vstoys",
"displayName": "VsToys",
"description": "VsCode Toys is a collection of utilities for Visual Studio Code.",
"version": "0.0.5",
"publisher": "Logonz",
"icon": "VsCodeToys-icon.png",
"license": "MIT",
"engines": {
"vscode": "^1.89.1"
},
"tags": [
"dot-repeat",
"motion"
],
"categories": [
"Other",
"Keymaps"
],
"main": "./dist/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/Logonz/vscode-toys.git"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "vstoys.smart-open.openSmart",
"title": "VsToys: SmartOpen"
},
{
"command": "vstoys.git.stageFile",
"title": "Git: Stage File - (VsToys)"
},
{
"command": "vstoys.git.stageHunk",
"title": "Git: Stage Hunk at Selection - (VsToys)"
},
{
"command": "vstoys.double-action.execute",
"title": "VsToys - DoubleAction: Execute"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"title": "VsToys - DotRepeat: repeatExecute"
},
{
"command": "vstoys.dot-repeat.repeatExit",
"title": "VsToys - DotRepeat: repeatExit"
},
{
"command": "vstoys.copy-highlight.copy",
"title": "VsToys - Copy Highlight: Copy"
},
{
"command": "vstoys.clear-line.clearLines",
"title": "VsToys - Clear Line: Clear Lines"
}
],
"configuration": {
"title": "VsToys - Configuration",
"properties": {
"vstoys.enabled": {
"type": "boolean",
"default": true,
"description": "Global enable/disable for the VSCode Toys"
},
"vstoys.smart-open.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Smart Open module in VSCode Toys"
},
"vstoys.smart-open.maxWorkspaceFiles": {
"type": "number",
"default": 5000,
"description": "Maximum number of files to index in the workspace, tip is to use gitignore to exclude files"
},
"vstoys.jump.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Jump module in VSCode Toys"
},
"vstoys.git.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Git module in VSCode Toys"
},
"vstoys.double-action.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Double Action module in VSCode Toys"
},
"vstoys.double-action.timeoutPress": {
"type": "boolean",
"default": false,
"description": "If true, the extension will wait for a timeout to execute the single press command rather than executing it immediately and if within the timeout only execute the double press, the default behavior will execute the single press command immediately and the double press command after the double press threshold"
},
"vstoys.double-action.singlePressCommand": {
"type": "string",
"default": "findJump.activate",
"description": "Command to execute when single pressing the key"
},
"vstoys.double-action.preDoublePressCommand": {
"type": "string",
"default": "findJump.activateWithSelection",
"description": "Command to execute before executing the double press command (I personally use this to exit a previos command)"
},
"vstoys.double-action.doublePressCommand": {
"type": "string",
"default": "findJump.activateWithSelection",
"description": "Command to execute when double pressing the key"
},
"vstoys.double-action.doublePressThreshold": {
"type": "number",
"default": 800,
"description": "Threshold in milliseconds to consider a double press, it resets the internal boolean after this time"
},
"vstoys.dot-repeat.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Dot-Repeat module in VSCode Toys"
},
"vstoys.copy-highlight.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Copy Highlight module in VSCode Toys"
},
"vstoys.copy-highlight.foregroundColor": {
"type": "string",
"description": "Foreground color for the copy highlighting"
},
"vstoys.copy-highlight.backgroundColor": {
"type": "string",
"default": "editor.wordHighlightBackground",
"description": "Background color for the copy highlighting\nFor more information about color check out https://code.visualstudio.com/api/references/theme-color for more available colors\nrgba(R, G, B, A) is also supported"
},
"vstoys.copy-highlight.timeout": {
"type": "number",
"default": 100,
"description": "Timeout duration in milliseconds"
},
"vstoys.clear-line.enabled": {
"type": "boolean",
"default": true,
"description": "Enable the Clear Line module in VSCode Toys"
}
}
},
"keybindings": [
{
"command": "vstoys.smart-open.openSmart",
"key": "ctrl+p",
"mac": "ctrl+p",
"when": "vstoys.smart-open.active"
},
{
"key": "alt+s f",
"command": "vstoys.git.stageFile",
"when": "editorTextFocus && vstoys.git.active"
},
{
"key": "alt+s h",
"command": "vstoys.git.stageHunk",
"when": "editorTextFocus && vstoys.git.active"
},
{
"command": "vstoys.double-action.execute",
"key": "f21",
"mac": "f21",
"when": "editorTextFocus && vstoys.double-action.active"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "f20",
"mac": "f20",
"args": {
"contextId": "hyper-layer-active"
},
"when": "vstoys.dot-repeat.active"
},
{
"command": "vstoys.dot-repeat.repeatExit",
"key": "escape",
"mac": "escape",
"args": {
"deactivateAll": true
},
"when": "vstoys.dot-repeat.global"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "alt+a",
"mac": "alt+a",
"args": {
"contextId": "repeat-smartselect",
"command": "editor.action.smartSelect.expand"
},
"when": "editorTextFocus && vstoys.dot-repeat.active"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "up",
"mac": "up",
"args": {
"repeat": true,
"contextId": "repeat-smartselect",
"command": "editor.action.smartSelect.expand"
},
"when": "editorTextFocus && repeat-smartselect"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "down",
"mac": "down",
"args": {
"repeat": true,
"contextId": "repeat-smartselect",
"command": "editor.action.smartSelect.shrink"
},
"when": "editorTextFocus && repeat-smartselect"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "a",
"mac": "a",
"args": {
"contextId": "repeat-smartselect",
"command": "editor.action.smartSelect.expand"
},
"when": "editorTextFocus && repeat-smartselect"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "shift+a",
"mac": "shift+a",
"args": {
"contextId": "repeat-smartselect",
"command": "editor.action.smartSelect.shrink"
},
"when": "editorTextFocus && repeat-smartselect"
},
{
"key": "d d",
"command": "vstoys.dot-repeat.repeatExecute",
"args": {
"timeoutSeconds": 1,
"contextId": "repeat-delete",
"command": "editor.action.deleteLines"
},
"when": "editorTextFocus && hyper-layer-active && !repeat-delete"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "d",
"mac": "d",
"args": {
"contextId": "repeat-delete",
"command": "editor.action.deleteLines"
},
"when": "editorTextFocus && repeat-delete"
},
{
"key": "d c",
"command": "vstoys.dot-repeat.repeatExecute",
"args": {
"timeoutSeconds": 1,
"contextId": "repeat-delete",
"command": "vstoys.clear-line.clearLines"
},
"when": "editorTextFocus && hyper-layer-active && vstoys.clear-line.active && !repeat-delete"
},
{
"command": "vstoys.dot-repeat.repeatExecute",
"key": "c",
"mac": "c",
"args": {
"contextId": "repeat-delete",
"command": "vstoys.clear-line.clearLines"
},
"when": "editorTextFocus && repeat-delete && vstoys.clear-line.active"
},
{
"command": "vstoys.copy-highlight.copy",
"key": "ctrl+c",
"mac": "cmd+c",
"when": "editorTextFocus && vstoys.copy-highlight.active"
},
{
"key": "d c",
"command": "vstoys.clear-line.clearLines",
"when": "editorTextFocus && hyper-layer-active && vstoys.clear-line.active && !vstoys.dot-repeat.active"
}
]
},
"scripts": {
"ext": "vsce package -o vscode-toys.vsix && code --install-extension vscode-toys.vsix",
"vsix": "vsce package -o vscode-toys.vsix",
"vscode:prepublish": "npm run package",
"compile": "webpack --node-env development",
"tcompile": "tsc -p ./",
"twatch": "tsc-watch -p ./",
"watch": "webpack --watch --node-env development",
"package": "webpack --node-env production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/tmp": "^0.2.6",
"@types/vscode": "^1.89.1",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.1.1",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"eslint": "^9.11.1",
"jsonc": "^2.0.0",
"ts-loader": "^9.5.1",
"tsc-watch": "^6.2.0",
"typescript": "^5.6.2",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-merge": "^6.0.1"
},
"dependencies": {
"@hediet/node-reload": "^0.8.0",
"@hediet/std": "^0.6.0",
"@types/deindent": "^0.1.3",
"deindent": "^0.1.0",
"ignore": "^6.0.2",
"minimatch": "^10.0.1",
"parse-diff": "^0.11.1",
"tmp": "^0.2.3"
}
}