forked from koalamer/vsc-labeled-bookmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
447 lines (447 loc) Β· 13.5 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
{
"name": "new-labeled-bookmarks",
"displayName": "New Labeled Bookmarks",
"description": "Bookmarks, multiple groups, customizable visuals, import, export",
"version": "1.1.15",
"publisher": "EvilDragonFly",
"icon": "resources/vsc-labeled-bookmarks-logo.png",
"repository": {
"type": "git",
"url": "https://github.com/EvilDragonFly/vsc-labeled-bookmarks.git"
},
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"commands": [
{
"command": "vsc-labeled-bookmarks.runDevAction",
"title": "Bookmarks: run dev action"
},
{
"command": "vsc-labeled-bookmarks.toggleBookmark",
"title": "Bookmarks: toggle bookmark"
},
{
"command": "vsc-labeled-bookmarks.toggleLabeledBookmark",
"title": "Bookmarks: toggle labeled bookmark"
},
{
"command": "vsc-labeled-bookmarks.navigateToBookmark",
"title": "Bookmarks: navigate to bookmark"
},
{
"command": "vsc-labeled-bookmarks.navigateToBookmarkOfAnyGroup",
"title": "Bookmarks: navigate to bookmark of any group"
},
{
"command": "vsc-labeled-bookmarks.selectGroup",
"title": "Bookmarks: select group"
},
{
"command": "vsc-labeled-bookmarks.addGroup",
"title": "Bookmarks: add group"
},
{
"command": "vsc-labeled-bookmarks.deleteGroup",
"title": "Bookmarks: delete group"
},
{
"command": "vsc-labeled-bookmarks.setGroupIconShape",
"title": "Bookmarks: set group icon shape"
},
{
"command": "vsc-labeled-bookmarks.setCustomIconText",
"title": "Bookmarks: set group icon text character"
},
{
"command": "vsc-labeled-bookmarks.setGroupIconColor",
"title": "Bookmarks: set group icon color"
},
{
"command": "vsc-labeled-bookmarks.deleteBookmark",
"title": "Bookmarks: delete bookmark"
},
{
"command": "vsc-labeled-bookmarks.toggleHideAll",
"title": "Bookmarks: toggle hiding all bookmark decorations"
},
{
"command": "vsc-labeled-bookmarks.toggleHideInactiveGroups",
"title": "Bookmarks: toggle hiding inactive group decorations"
},
{
"command": "vsc-labeled-bookmarks.navigateToNextBookmark",
"title": "Bookmarks: navigate to next bookmark"
},
{
"command": "vsc-labeled-bookmarks.navigateToPreviousBookmark",
"title": "Bookmarks: navigate to previous bookmark"
},
{
"command": "vsc-labeled-bookmarks.clearFailedJumpFlags",
"title": "Bookmarks: clear failed jump flags from bookmarks"
},
{
"command": "vsc-labeled-bookmarks.expandSelectionToNextBookmark",
"title": "Bookmarks: expand selection to next bookmark"
},
{
"command": "vsc-labeled-bookmarks.expandSelectionToPreviousBookmark",
"title": "Bookmarks: expand selection to previous bookmark"
},
{
"command": "vsc-labeled-bookmarks.refreshTreeView",
"title": "Bookmarks: refresh tree view",
"icon": "$(refresh)"
},
{
"command": "vsc-labeled-bookmarks.jumpToBookmark",
"title": "Bookmarks: jump to bookmark"
},
{
"command": "vsc-labeled-bookmarks.showTreeView",
"title": "Bookmarks: show tree view"
},
{
"command": "vsc-labeled-bookmarks.moveBookmarksFromActiveGroup",
"title": "Bookmarks: move bookmarks"
},
{
"command": "vsc-labeled-bookmarks.showStorageActionPanel",
"title": "Bookmarks: show storage action panel"
},
{
"command": "vsc-labeled-bookmarks.activateTreeItem",
"title": "Activate bookmark tree item",
"icon": "$(eye)"
},
{
"command": "vsc-labeled-bookmarks.editTreeItem",
"title": "Edit bookmark tree item",
"icon": "$(edit)"
},
{
"command": "vsc-labeled-bookmarks.deleteTreeItem",
"title": "Remove bookmark tree item",
"icon": "$(remove-close)"
}
],
"keybindings": [
{
"command": "vsc-labeled-bookmarks.toggleBookmark",
"key": "ctrl+alt+m",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.toggleLabeledBookmark",
"key": "ctrl+alt+l",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.navigateToNextBookmark",
"key": "ctrl+alt+k",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.navigateToPreviousBookmark",
"key": "ctrl+alt+j",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.expandSelectionToNextBookmark",
"key": "shift+alt+k",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.expandSelectionToPreviousBookmark",
"key": "shift+alt+j",
"when": "editorTextFocus"
},
{
"command": "vsc-labeled-bookmarks.navigateToBookmark",
"key": "ctrl+alt+n"
},
{
"command": "vsc-labeled-bookmarks.selectGroup",
"key": "ctrl+alt+b g"
},
{
"command": "vsc-labeled-bookmarks.addGroup",
"key": "ctrl+alt+b alt+g"
},
{
"command": "vsc-labeled-bookmarks.deleteGroup",
"key": "ctrl+alt+b shift+g"
},
{
"command": "vsc-labeled-bookmarks.setGroupIconShape",
"key": "ctrl+alt+b s"
},
{
"command": "vsc-labeled-bookmarks.setGroupIconColor",
"key": "ctrl+alt+b c"
},
{
"command": "vsc-labeled-bookmarks.navigateToBookmarkOfAnyGroup",
"key": "ctrl+alt+b n"
},
{
"command": "vsc-labeled-bookmarks.deleteBookmark",
"key": "ctrl+alt+b d"
},
{
"command": "vsc-labeled-bookmarks.toggleHideAll",
"key": "ctrl+alt+b h"
},
{
"command": "vsc-labeled-bookmarks.toggleHideInactiveGroups",
"key": "ctrl+alt+b i"
},
{
"command": "vsc-labeled-bookmarks.clearFailedJumpFlags",
"key": "ctrl+alt+b f"
},
{
"command": "vsc-labeled-bookmarks.showTreeView",
"key": "ctrl+alt+b t"
},
{
"command": "vsc-labeled-bookmarks.moveBookmarksFromActiveGroup",
"key": "ctrl+alt+b m"
},
{
"command": "vsc-labeled-bookmarks.setCustomIconText",
"key": "ctrl+alt+b ctrl+i"
},
{
"command": "vsc-labeled-bookmarks.showStorageActionPanel",
"key": "ctrl+alt+b p"
}
],
"configuration": {
"title": "New Labeled Bookmarks",
"properties": {
"labeledBookmarks.colors": {
"type": "array",
"description": "Array of names and color codes that will be available as bookmark group colors, eg: [[\"red\": \"ff0000\"], [\"green\": \"00ff00\"]]",
"default": [
[
"teal",
"#00dddd"
],
[
"blue",
"#0000dd"
],
[
"magenta",
"#dd00dd"
],
[
"red",
"#dd0000"
],
[
"yellow",
"#dddd00"
],
[
"green",
"#00dd00"
]
]
},
"labeledBookmarks.unicodeMarkers": {
"type": "array",
"description": "Array of names and unicode characters that will be available as extra decoration shapes for bookmark groups, eg: [[\"look\": \"π\"], [\"bug\",\"π\"]]",
"default": [
[
"look",
"π"
],
[
"bug",
"π"
],
[
"asterix",
"β±"
],
[
"diamond",
"β"
]
]
},
"labeledBookmarks.defaultShape": {
"type": "string",
"description": "The default shape for new bookmark groups",
"default": "bookmark",
"enum": [
"bookmark",
"circle",
"heart",
"label",
"star"
]
},
"labeledBookmarks.overviewRulerLane": {
"type": "string",
"description": "The placement of bookmark markers in the overview ruler (the scrollbar)",
"default": "center",
"enum": [
"center",
"full",
"left",
"right",
"none"
]
},
"labeledBookmarks.lineEndLabelType": {
"type": "string",
"description": "The style of how the line end decorations for labeled bookmarks should appear",
"default": "bordered",
"enum": [
"none",
"bordered",
"inverse"
]
},
"labeledBookmarks.homingMarginTop": {
"type": "number",
"description": "How many lines apart the bookmark should be kept from the vieport's top when navigating.",
"default": 6,
"minimum": 0,
"maximum": 200
},
"labeledBookmarks.homingMarginBottom": {
"type": "number",
"description": "How many lines apart the bookmark should be kept from the viewport's bottom when navigating.",
"default": 30,
"minimum": 0,
"maximum": 200
},
"labeledBookmarks.homingSteps": {
"type": "number",
"description": "The value 0 means the homing margin functionality is disabled. Higher values cause the homing functionality to work more reliable in case the target area contains long wrapped lines or the viewport is too small for the target area to fit into it.",
"default": 0,
"minimum": 0,
"maximum": 5
},
"labeledBookmarks.saveBookmarksInProject": {
"type": "boolean",
"default": false,
"description": "Allow bookmarks to be saved (and restored) locally in the opened Project/Folder instead of VS Code"
},
"labeledBookmarks.persistenceDelay": {
"type": "number",
"description": "Accumulate changes for this many milliseconds before starting to persist them.",
"default": 500,
"minimum": 0,
"maximum": 5000
},
"labeledBookmarks.persistenceIntervalForWorkspaceState": {
"type": "number",
"description": "If bookmarks are persisted into the workspace state, wait this many milliseconds between repeatedly writing.",
"default": 500,
"minimum": 0,
"maximum": 10000
},
"labeledBookmarks.persistenceIntervalForFiles": {
"type": "number",
"description": "If bookmarks are persisted into a file, wait this many milliseconds between repeatedly writing.",
"default": 1500,
"minimum": 0,
"maximum": 10000
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "labeled-bookmarks-tree-view",
"title": "New Labeled Bookmarks",
"icon": "$(bookmark)"
}
]
},
"views": {
"labeled-bookmarks-tree-view": [
{
"id": "bookmarksByActiveGroup",
"name": "Active Group",
"icon": "$(bookmark)"
},
{
"id": "bookmarksByInactiveGroups",
"name": "Inactive Groups",
"icon": "$(bookmark)"
},
{
"id": "bookmarksByFile",
"name": "By File",
"icon": "$(bookmark)"
}
]
},
"viewsWelcome": [
{
"view": "bookmarksByActiveGroup",
"contents": "Loading..."
}
],
"menus": {
"view/item/context": [
{
"command": "vsc-labeled-bookmarks.activateTreeItem",
"when": "view == bookmarksByInactiveGroups && viewItem == group",
"group": "inline"
},
{
"command": "vsc-labeled-bookmarks.editTreeItem",
"when": "view == bookmarksByActiveGroup && viewItem != none && viewItem != file || view == bookmarksByInactiveGroups && viewItem != none && viewItem != file || view == bookmarksByFile && viewItem != none && viewItem != file",
"group": "inline"
},
{
"command": "vsc-labeled-bookmarks.deleteTreeItem",
"when": "view == bookmarksByActiveGroup && viewItem != none || view == bookmarksByInactiveGroups && viewItem != none || view == bookmarksByFile && viewItem != none ",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^10.0.0",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
}
}