-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
564 lines (564 loc) Β· 16.5 KB
/
package.json
File metadata and controls
564 lines (564 loc) Β· 16.5 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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
{
"name": "copy-path-with-code",
"displayName": "Copy Path with Code",
"description": "Copy file path along with its content",
"version": "1.0.4",
"publisher": "khanhromvn",
"license": "MIT",
"capabilities": {
"exportedAPI": true
},
"repository": {
"type": "git",
"url": "https://github.com/khanhromvn/copy-path-with-code.git"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.50.0"
},
"categories": [
"Other"
],
"keywords": [
"copy",
"path",
"content",
"clipboard",
"file",
"search",
"folder"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "copy-path-with-code.copyPathWithContent",
"title": "Copy Path and Content"
},
{
"command": "copy-path-with-code.copyPathWithContentAndError",
"title": "Copy Path and Content with Error"
},
{
"command": "copy-path-with-code.clearClipboard",
"title": "Clear System Clipboard"
},
{
"command": "copy-path-with-code.createFolder",
"title": "Create Folder",
"icon": "$(add)"
},
{
"command": "copy-path-with-code.showFolderMenu",
"title": "Folder Menu",
"icon": "$(kebab-vertical)"
},
{
"command": "copy-path-with-code.expandFolder",
"title": "Expand Folder",
"icon": "$(expand-all)"
},
{
"command": "copy-path-with-code.collapseFolder",
"title": "Collapse Folder",
"icon": "$(collapse-all)"
},
{
"command": "copy-path-with-code.copyFolderContent",
"title": "Copy Content",
"icon": "$(copy)"
},
{
"command": "copy-path-with-code.renameFolderQuick",
"title": "Rename",
"icon": "$(edit)"
},
{
"command": "copy-path-with-code.addFileToFolder",
"title": "Add Current File to Folder"
},
{
"command": "copy-path-with-code.removeFileFromFolder",
"title": "Remove Current File from Folder"
},
{
"command": "copy-path-with-code.openFolderFiles",
"title": "Open Folder Files"
},
{
"command": "copy-path-with-code.copyFolderContents",
"title": "Copy Folder Contents"
},
{
"command": "copy-path-with-code.deleteFolder",
"title": "Delete Folder"
},
{
"command": "copy-path-with-code.renameFolder",
"title": "Rename Folder"
},
{
"command": "copy-path-with-code.toggleClipboardDetection",
"title": "Toggle Clipboard Detection",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.clearClipboardQueue",
"title": "Clear Clipboard Queue",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.openClipboardFile",
"title": "Open Clipboard File",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.refreshClipboardView",
"title": "Refresh Clipboard View",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.refreshFolderView",
"title": "Refresh Folder View",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.showLogs",
"title": "Show Extension Logs",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.expandAllDirectories",
"title": "Expand All",
"icon": "$(expand-all)"
},
{
"command": "copy-path-with-code.collapseAllDirectories",
"title": "Collapse All",
"icon": "$(collapse-all)"
},
{
"command": "copy-path-with-code.revealInExplorer",
"title": "Reveal in Explorer"
},
{
"command": "copy-path-with-code.toggleFileSelection",
"title": "Toggle File Selection"
},
{
"command": "copy-path-with-code.confirmFileManagement",
"title": "Confirm Selection"
},
{
"command": "copy-path-with-code.cancelFileManagement",
"title": "Cancel"
},
{
"command": "copy-path-with-code.selectAllFilesInFolder",
"title": "Select All Files",
"icon": "$(check-all)"
},
{
"command": "copy-path-with-code.unselectAllFilesInFolder",
"title": "Unselect All Files",
"icon": "$(close-all)"
},
{
"command": "copy-path-with-code.openFile",
"title": "Open"
},
{
"command": "copy-path-with-code.openToSide",
"title": "Open to the Side"
},
{
"command": "copy-path-with-code.openWith",
"title": "Open With..."
},
{
"command": "copy-path-with-code.openContainingFolder",
"title": "Open Containing Folder"
},
{
"command": "copy-path-with-code.copyPath",
"title": "Copy Path"
},
{
"command": "copy-path-with-code.copyRelativePath",
"title": "Copy Relative Path"
},
{
"command": "copy-path-with-code.revealInFileExplorer",
"title": "Reveal in File Explorer"
},
{
"command": "copy-path-with-code.openInIntegratedTerminal",
"title": "Open in Integrated Terminal"
},
{
"command": "copy-path-with-code.renameFile",
"title": "Rename"
},
{
"command": "copy-path-with-code.deleteFile",
"title": "Delete"
},
{
"command": "copy-path-with-code.cutFile",
"title": "Cut"
},
{
"command": "copy-path-with-code.copyFile",
"title": "Copy"
},
{
"command": "copy-path-with-code.pasteFile",
"title": "Paste"
},
{
"command": "copy-path-with-code.newFile",
"title": "New File"
},
{
"command": "copy-path-with-code.newFolder",
"title": "New Folder"
},
{
"command": "copy-path-with-code.copyIndividualFile",
"title": "Copy File Content",
"icon": "$(copy)"
},
{
"command": "copy-path-with-code.toggleViewMode",
"title": "Toggle View Mode",
"icon": "$(eye)"
},
{
"command": "copy-path-with-code.showSearchInput",
"title": "Search Files & Folders",
"icon": "$(search)",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.clearSearch",
"title": "Clear Search Filter",
"icon": "$(clear-all)",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.showFileManagementSearch",
"title": "Search Files in Workspace",
"icon": "$(search)",
"category": "Copy Path with Code"
},
{
"command": "copy-path-with-code.clearFileManagementSearch",
"title": "Clear Search Filter",
"icon": "$(clear-all)",
"category": "Copy Path with Code"
}
],
"keybindings": [
{
"command": "copy-path-with-code.copyPathWithContent",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c",
"when": "editorTextFocus"
},
{
"command": "copy-path-with-code.copyPathWithContentAndError",
"key": "ctrl+alt+a",
"mac": "cmd+alt+a",
"when": "editorTextFocus"
},
{
"command": "copy-path-with-code.clearClipboard",
"key": "ctrl+alt+z",
"mac": "cmd+alt+z"
},
{
"command": "copy-path-with-code.addFileToFolder",
"key": "ctrl+alt+shift+a",
"mac": "cmd+alt+shift+a"
},
{
"command": "copy-path-with-code.removeFileFromFolder",
"key": "ctrl+alt+d",
"mac": "cmd+alt+d"
},
{
"command": "copy-path-with-code.clearClipboardQueue",
"key": "ctrl+alt+shift+z",
"mac": "cmd+alt+shift+z"
},
{
"command": "copy-path-with-code.showSearchInput",
"key": "ctrl+alt+f",
"mac": "cmd+alt+f",
"when": "view == folderManager"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "copy-path-with-code-folders",
"title": "Code Folders",
"icon": "$(folder-opened)"
}
]
},
"views": {
"copy-path-with-code-folders": [
{
"id": "folderManager",
"name": "Code Folders",
"contextualTitle": "Code Folders"
}
],
"explorer": [
{
"id": "clipboard-detection",
"name": "Clipboard Files",
"when": "copyPathWithCode.hasClipboardFiles"
}
]
},
"menus": {
"view/item/context": [
{
"command": "copy-path-with-code.showFolderMenu",
"when": "view == folderManager && viewItem == folder",
"group": "inline@1"
},
{
"command": "copy-path-with-code.expandFolder",
"when": "view == folderManager && viewItem == folder",
"group": "inline@2"
},
{
"command": "copy-path-with-code.copyFolderContent",
"when": "view == folderManager && viewItem == folder",
"group": "inline@3"
},
{
"command": "copy-path-with-code.copyIndividualFile",
"when": "view == folderManager && viewItem == file",
"group": "inline"
},
{
"command": "copy-path-with-code.selectAllFilesInFolder",
"when": "view == folderManager && viewItem == fileManagementDirectory",
"group": "1_selection@1"
},
{
"command": "copy-path-with-code.unselectAllFilesInFolder",
"when": "view == folderManager && viewItem == fileManagementDirectory",
"group": "1_selection@2"
},
{
"submenu": "copy-path-with-code.fileContextMenu",
"when": "view == folderManager && viewItem == file",
"group": "navigation@1"
},
{
"submenu": "copy-path-with-code.folderContextMenu",
"when": "view == folderManager && viewItem == directory",
"group": "navigation@1"
},
{
"command": "copy-path-with-code.openFile",
"when": "view == folderManager && viewItem == file",
"group": "1_file@1"
},
{
"command": "copy-path-with-code.openToSide",
"when": "view == folderManager && viewItem == file",
"group": "1_file@2"
},
{
"command": "copy-path-with-code.openWith",
"when": "view == folderManager && viewItem == file",
"group": "1_file@3"
},
{
"command": "copy-path-with-code.openContainingFolder",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "2_workspace@1"
},
{
"command": "copy-path-with-code.openInIntegratedTerminal",
"when": "view == folderManager && viewItem == directory",
"group": "2_workspace@2"
},
{
"command": "copy-path-with-code.copyPath",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "3_compare@1"
},
{
"command": "copy-path-with-code.copyRelativePath",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "3_compare@2"
},
{
"command": "copy-path-with-code.cutFile",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "4_cutcopypaste@1"
},
{
"command": "copy-path-with-code.copyFile",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "4_cutcopypaste@2"
},
{
"command": "copy-path-with-code.pasteFile",
"when": "view == folderManager && viewItem == directory && copyPathWithCode.hasClipboardItems",
"group": "4_cutcopypaste@3"
},
{
"command": "copy-path-with-code.renameFile",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "5_modification@1"
},
{
"command": "copy-path-with-code.deleteFile",
"when": "view == folderManager && (viewItem == file || viewItem == directory)",
"group": "5_modification@2"
},
{
"command": "copy-path-with-code.newFile",
"when": "view == folderManager && viewItem == directory",
"group": "6_new@1"
},
{
"command": "copy-path-with-code.newFolder",
"when": "view == folderManager && viewItem == directory",
"group": "6_new@2"
},
{
"command": "copy-path-with-code.showFileManagementSearch",
"when": "view == folderManager && viewItem == fileManagementHeader",
"group": "inline@1"
}
],
"view/title": [
{
"command": "copy-path-with-code.createFolder",
"when": "view == folderManager",
"group": "navigation@1"
},
{
"command": "copy-path-with-code.toggleViewMode",
"when": "view == folderManager",
"group": "navigation@2"
}
]
},
"submenus": [
{
"id": "copy-path-with-code.fileContextMenu",
"label": "File Options"
},
{
"id": "copy-path-with-code.folderContextMenu",
"label": "Folder Options"
}
],
"configuration": {
"title": "Copy Path with Code",
"properties": {
"copyPathWithCode.enableClipboardDetection": {
"type": "boolean",
"default": true,
"description": "Automatically detect files from clipboard content"
},
"copyPathWithCode.showFileCount": {
"type": "boolean",
"default": true,
"description": "Show file count in directory descriptions"
},
"copyPathWithCode.expandDirectoriesByDefault": {
"type": "boolean",
"default": false,
"description": "Expand directories by default when opening folder"
},
"copyPathWithCode.searchCaseSensitive": {
"type": "boolean",
"default": false,
"description": "Enable case-sensitive search for files and folders"
},
"copyPathWithCode.searchIncludeExtensions": {
"type": "boolean",
"default": true,
"description": "Include file extensions in search results"
}
}
},
"colors": [
{
"id": "copyPathWithCode.folderDifferentWorkspace",
"description": "Color for folders from different workspaces",
"defaults": {
"dark": "#999999",
"light": "#666666",
"highContrast": "#888888"
}
},
{
"id": "copyPathWithCode.currentWorkspaceIndicator",
"description": "Color for current workspace indicator",
"defaults": {
"dark": "#4CAF50",
"light": "#2E7D32",
"highContrast": "#00FF00"
}
},
{
"id": "copyPathWithCode.differentWorkspaceIndicator",
"description": "Color for different workspace indicator",
"defaults": {
"dark": "#FF9800",
"light": "#F57C00",
"highContrast": "#FFFF00"
}
},
{
"id": "copyPathWithCode.searchHighlight",
"description": "Color for search result highlights",
"defaults": {
"dark": "#FFC107",
"light": "#FF8F00",
"highContrast": "#FFFF00"
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode 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/vscode": "^1.50.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"eslint": "^9.23.0",
"typescript": "^5.8.2",
"ts-loader": "^9.5.2",
"webpack": "^5.98.0",
"webpack-cli": "^6.0.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}