-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
464 lines (464 loc) · 14.7 KB
/
Copy pathpackage.json
File metadata and controls
464 lines (464 loc) · 14.7 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
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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
{
"name": "pin-context",
"displayName": "Pin Context",
"description": "Advanced context and pin management for VS Code with instant keyboard navigation",
"version": "0.0.5",
"publisher": "borisalex-in",
"icon": "images/icon.png",
"author": {
"name": "Alexander Boris",
"email": "borisalex.in@yandex.com",
"url": "https://github.com/borisalex-in"
},
"repository": {
"type": "git",
"url": "https://github.com/borisalex-in/pin-context.git"
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"docs:serve": "http-server ./docs -p 4173 -c-1",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix",
"format": "prettier --write \"**/*.{ts,js,json,md,css,html,yml,yaml}\"",
"format:check": "prettier --check \"**/*.{ts,js,json,md,css,html,yml,yaml}\"",
"precommit:check": "npm run format:check && npm run lint && npm run compile",
"prepare": "husky",
"version": "tsx scripts/update-readme-version.ts",
"postversion": "git add -A && git commit && git tag v$(node -p \"require('./package.json').version\") && git push origin --tags",
"release:patch": "npm run precommit:check && npm run build:vsix && npm version patch --no-git-tag-version",
"release:minor": "npm run precommit:check && npm run build:vsix && npm version minor --no-git-tag-version",
"release:major": "npm run precommit:check && npm run build:vsix && npm version major --no-git-tag-version",
"hotfix:patch": "npm run precommit:check && npm run build:vsix && npm version patch --no-git-tag-version",
"build": "npm run compile",
"build:vsix": "npm run compile && vsce package",
"publish": "npm run compile && npm run build:vsix && code --install-extension pin-context-$(node -p \"require('./package.json').version\").vsix",
"publish:vsix": "vsce publish",
"publish:release": "npm run release:patch && npm run publish:vsix",
"clean": "rm -rf out *.vsix",
"install:local": "code --install-extension pin-context-$(node -p \"require('./package.json').version\").vsix",
"reinstall:local": "npm run build:vsix && npm run install:local"
},
"keywords": [
"vscode",
"pin tabs",
"pinned tabs",
"tab manager",
"tab organizer",
"tab workflow",
"session manager",
"workspace context",
"context manager",
"context switching",
"task switching",
"workflow",
"developer productivity",
"quick open",
"fuzzy search",
"sidebar",
"file bookmarks",
"code bookmarks",
"git branch context",
"navigation"
],
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:pin-context.pinCurrentEditor",
"onCommand:pin-context.unpinCurrentEditor",
"onCommand:pin-context.togglePinCurrentEditor",
"onCommand:pin-context.pinAllEditors",
"onCommand:pin-context.unpinAllEditors",
"onCommand:pin-context.pinEditorsByPattern",
"onCommand:pin-context.refreshPinnedView",
"onCommand:pin-context.toggleViewMode",
"onCommand:pin-context.unpinFromTree",
"onCommand:pin-context.revealInExplorer",
"onCommand:pin-context.copyPathFromTree",
"onCommand:pin-context.createContext",
"onCommand:pin-context.switchContext",
"onCommand:pin-context.switchContextById",
"onCommand:pin-context.saveCurrentToContext",
"onCommand:pin-context.openContextTimeline",
"onCommand:pin-context.quickOpenPinned",
"onCommand:pin-context.renameContext",
"onCommand:pin-context.deleteContext",
"onView:pin-context.pinnedView"
],
"main": "./out/extension.js",
"contributes": {
"views": {
"explorer": [
{
"id": "pin-context.pinnedView",
"name": "Pin Context"
}
]
},
"commands": [
{
"command": "pin-context.pinCurrentEditor",
"title": "Pin Current Editor",
"category": "Pin Context",
"icon": "$(pin)"
},
{
"command": "pin-context.unpinCurrentEditor",
"title": "Unpin Current Editor",
"category": "Pin Context",
"icon": "$(pinned)"
},
{
"command": "pin-context.togglePinCurrentEditor",
"title": "Toggle Pin Current Editor",
"category": "Pin Context"
},
{
"command": "pin-context.pinAllEditors",
"title": "Pin All Opened Editors",
"category": "Pin Context"
},
{
"command": "pin-context.unpinAllEditors",
"title": "Unpin All Editors",
"category": "Pin Context"
},
{
"command": "pin-context.pinEditorsByPattern",
"title": "Pin Editors by Pattern",
"category": "Pin Context"
},
{
"command": "pin-context.refreshPinnedView",
"title": "Refresh Pinned Files View",
"category": "Pin Context",
"icon": "$(refresh)"
},
{
"command": "pin-context.toggleViewMode",
"title": "Toggle View Mode (Tree/List)",
"category": "Pin Context",
"icon": "$(list-tree)"
},
{
"command": "pin-context.unpinFromTree",
"title": "Unpin",
"category": "Pin Context",
"icon": "$(pinned)"
},
{
"command": "pin-context.revealInExplorer",
"title": "Reveal in Explorer",
"category": "Pin Context"
},
{
"command": "pin-context.copyPathFromTree",
"title": "Copy Path",
"category": "Pin Context"
},
{
"command": "pin-context.createContext",
"title": "Create Context",
"category": "Pin Context",
"icon": "$(new-folder)"
},
{
"command": "pin-context.switchContext",
"title": "Switch Context",
"category": "Pin Context",
"icon": "$(arrow-swap)"
},
{
"command": "pin-context.switchContextById",
"title": "Switch Context By Id",
"category": "Pin Context"
},
{
"command": "pin-context.saveCurrentToContext",
"title": "Save Current Pins to Context",
"category": "Pin Context",
"icon": "$(save)"
},
{
"command": "pin-context.openContextTimeline",
"title": "Open Context Timeline",
"category": "Pin Context",
"icon": "$(history)"
},
{
"command": "pin-context.quickOpenPinned",
"title": "Quick Open Pinned File",
"category": "Pin Context",
"icon": "$(search)"
},
{
"command": "pin-context.renameContext",
"title": "Rename Context",
"category": "Pin Context",
"icon": "$(edit)"
},
{
"command": "pin-context.deleteContext",
"title": "Delete Context",
"category": "Pin Context",
"icon": "$(trash)"
}
],
"keybindings": [
{
"command": "pin-context.pinCurrentEditor",
"key": "ctrl+shift+k",
"mac": "cmd+alt+k"
},
{
"command": "pin-context.unpinCurrentEditor",
"key": "ctrl+shift+l",
"mac": "cmd+alt+l"
},
{
"command": "pin-context.togglePinCurrentEditor",
"key": "ctrl+shift+j",
"mac": "cmd+alt+j"
},
{
"command": "pin-context.switchContext",
"key": "ctrl+shift+p",
"mac": "cmd+alt+p"
}
],
"menus": {
"view/title": [
{
"command": "pin-context.refreshPinnedView",
"when": "view == pin-context.pinnedView",
"group": "navigation@1"
},
{
"command": "pin-context.toggleViewMode",
"when": "view == pin-context.pinnedView",
"group": "navigation@2"
},
{
"command": "pin-context.switchContext",
"when": "view == pin-context.pinnedView",
"group": "navigation@3"
},
{
"command": "pin-context.quickOpenPinned",
"when": "view == pin-context.pinnedView",
"group": "navigation@4"
},
{
"command": "pin-context.createContext",
"when": "view == pin-context.pinnedView",
"group": "navigation@5"
},
{
"command": "pin-context.renameContext",
"when": "view == pin-context.pinnedView",
"group": "navigation@6"
},
{
"command": "pin-context.deleteContext",
"when": "view == pin-context.pinnedView",
"group": "navigation@7"
},
{
"command": "pin-context.refreshPinnedView",
"when": "view == pin-context.pinnedView",
"group": "2_view@1"
},
{
"command": "pin-context.toggleViewMode",
"when": "view == pin-context.pinnedView",
"group": "2_view@2"
}
],
"view/item/context": [
{
"command": "pin-context.unpinFromTree",
"when": "view == pin-context.pinnedView && viewItem == pinnedFile",
"group": "inline@1"
},
{
"command": "pin-context.revealInExplorer",
"when": "view == pin-context.pinnedView && viewItem == pinnedFile",
"group": "navigation@2"
},
{
"command": "pin-context.copyPathFromTree",
"when": "view == pin-context.pinnedView && viewItem == pinnedFile",
"group": "navigation@3"
},
{
"command": "pin-context.toggleViewMode",
"when": "view == pin-context.pinnedView && (viewItem == pinnedFile || viewItem == pinnedFolder)",
"group": "navigation@10"
},
{
"command": "pin-context.refreshPinnedView",
"when": "view == pin-context.pinnedView && (viewItem == pinnedFile || viewItem == pinnedFolder)",
"group": "navigation@11"
}
],
"explorer/context": [
{
"command": "pin-context.pinCurrentEditor",
"when": "resourceScheme == file",
"group": "navigation@20"
},
{
"command": "pin-context.unpinCurrentEditor",
"when": "resourceScheme == file",
"group": "navigation@21"
},
{
"command": "pin-context.togglePinCurrentEditor",
"when": "resourceScheme == file",
"group": "navigation@22"
}
]
},
"configuration": {
"title": "Pin Context",
"properties": {
"pin-context.viewMode": {
"type": "string",
"default": "tree",
"enum": [
"tree",
"list"
],
"enumDescriptions": [
"Show pinned files grouped by folder",
"Show pinned files as a flat list"
],
"description": "Display mode for pinned files view"
},
"pin-context.confirmBeforeUnpinAll": {
"type": "boolean",
"default": true,
"description": "Show confirmation dialog before unpinning all editors"
},
"pin-context.showPinnedCountInStatusBar": {
"type": "boolean",
"default": true,
"description": "Display the number of pinned editors in the status bar"
},
"pin-context.persistenceScope": {
"type": "string",
"default": "globalState",
"enum": [
"globalState",
"workspaceState"
],
"enumDescriptions": [
"Persist pinned files globally across all workspaces",
"Persist pinned files only in the current workspace"
],
"description": "Storage scope used for pinned files persistence"
},
"pin-context.restoreBehavior": {
"type": "string",
"default": "keepInTree",
"enum": [
"keepInTree",
"reopenAndPin"
],
"enumDescriptions": [
"Keep pinned files visible in the sidebar even when closed",
"Try to reopen persisted files and pin their tabs on startup"
],
"description": "How persisted pinned files are restored when the extension starts"
},
"pin-context.batchSize": {
"type": "number",
"default": 8,
"minimum": 1,
"maximum": 20,
"description": "Maximum number of files processed per batch during pin/unpin operations"
},
"pin-context.findFilesMaxResults": {
"type": "number",
"default": 2000,
"minimum": 100,
"maximum": 10000,
"description": "Maximum number of file matches returned by workspace search for pattern pinning"
},
"pin-context.restoreReopenLimit": {
"type": "number",
"default": 50,
"minimum": 0,
"maximum": 500,
"description": "Maximum number of files to reopen and re-pin on startup when restoreBehavior is reopenAndPin"
},
"pin-context.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logs for pinning operations and restore behavior"
},
"pin-context.contexts.autoGitContexts": {
"type": "boolean",
"default": true,
"description": "Automatically maintain git-aware contexts per branch"
},
"pin-context.contexts.restoreLastContext": {
"type": "boolean",
"default": false,
"description": "Restore the last active context on extension activation"
},
"pin-context.contexts.timelineEnabled": {
"type": "boolean",
"default": true,
"description": "Track context history for quick switching"
},
"pin-context.contexts.maxTimelineEntries": {
"type": "number",
"default": 100,
"minimum": 10,
"maximum": 1000,
"description": "Maximum number of context history entries to retain"
},
"pin-context.contexts.persistenceScope": {
"type": "string",
"default": "globalState",
"enum": [
"globalState",
"workspaceState"
],
"enumDescriptions": [
"Persist contexts globally across all workspaces",
"Persist contexts only in the current workspace"
],
"description": "Persistence scope for context metadata"
}
}
}
},
"devDependencies": {
"@types/node": "20.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.59.0",
"@typescript-eslint/parser": "^8.59.0",
"@vscode/vsce": "^2.24.0",
"conventional-changelog-cli": "^5.0.0",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"path": "^0.12.7",
"prettier": "^3.8.3",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
},
"overrides": {
"cheerio": "1.0.0-rc.12"
},
"dependencies": {
"minimatch": "^10.2.5"
}
}