Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
259 lines (259 loc) · 8.57 KB
/
Copy pathpackage.json
File metadata and controls
259 lines (259 loc) · 8.57 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
{
"name": "commander-v",
"displayName": "Commander V",
"publisher": "kerns",
"repository": {
"type": "git",
"url": "https://github.com/kerns/commander-v"
},
"description": "Bundle selected file contents and project trees into one clipboard snapshot for code reviews, documentation, and AI workflows.",
"version": "3.0.1",
"keywords": [
"clipboard",
"context",
"project tree",
"AI",
"productivity"
],
"icon": "src/commander_v_icon.png",
"engines": {
"vscode": "^1.105.0",
"node": ">=22.13.0"
},
"categories": [
"Other"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "extension.commanderV",
"title": "Commander V"
},
{
"command": "extension.commanderVReusePreviousSelection",
"title": "Reuse last Commander V Selection"
},
{
"command": "extension.commanderVCopyProjectTree",
"title": "Commander V: Copy Project Tree"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.commanderV",
"when": "resource"
},
{
"command": "extension.commanderVCopyProjectTree",
"when": "explorerResourceIsFolder && (resourceScheme == file || resourceScheme == vscode-remote)"
},
{
"command": "extension.commanderVReusePreviousSelection",
"when": "resource && commanderV.hasPreviousSelection"
}
],
"editor/title/context": [
{
"command": "extension.commanderV",
"when": "resourceScheme == file"
}
]
},
"keybindings": [
{
"command": "extension.commanderV",
"key": "shift+ctrl+v",
"mac": "shift+cmd+v"
},
{
"command": "extension.commanderVReusePreviousSelection",
"key": "shift+ctrl+r",
"mac": "shift+cmd+r"
},
{
"command": "extension.commanderVCopyProjectTree",
"key": "ctrl+k ctrl+shift+t",
"mac": "cmd+k cmd+shift+t",
"when": "!terminalFocus && !inQuickOpen"
}
],
"configuration": {
"title": "Commander V",
"properties": {
"commanderV.includeProjectTree": {
"order": 1,
"type": "boolean",
"default": true,
"description": "Include a project tree alongside file contents. Turn off for files only. The Copy Project Tree command always copies only the tree.",
"scope": "resource"
},
"commanderV.projectTreeDepth": {
"order": 2,
"type": "integer",
"default": 3,
"description": "Maximum tree depth. Always applies to Copy Project Tree; for combined copies, not applied when Prune Project Tree is enabled.",
"minimum": 0,
"maximum": 100,
"scope": "resource"
},
"commanderV.pruneProjectTree": {
"order": 4,
"type": "boolean",
"default": true,
"description": "Limit the tree to only include files that have been selected",
"scope": "resource"
},
"commanderV.orderFilesBy": {
"order": 5,
"type": "string",
"default": "treeOrder",
"enum": [
"treeOrder",
"selectionOrder"
],
"enumDescriptions": [
"by position in the tree...",
"by order of selection..."
],
"description": "Specify how to sort files when concatenating their content",
"scope": "resource"
},
"commanderV.ignoreFile": {
"order": 6,
"type": "string",
"default": ".gitignore",
"title": "Ignore File",
"description": "Ignore file path relative to the workspace folder (or the copied folder outside a workspace). Extends built-in exclusions for folder contents and project trees. Explicitly selected files are still copied. Set to an empty string to use only built-in exclusions.",
"examples": [
".com-v.ignore"
],
"scope": "resource"
},
"commanderV.useDefaultIgnores": {
"order": 6.1,
"type": "boolean",
"default": true,
"description": "Skip common dependencies, build output, caches, repository internals, and local environment files when copying folders or trees. Project ignore rules can override these defaults; explicitly selected files are still copied.",
"scope": "resource"
},
"commanderV.commentAtFileBegin": {
"order": 7,
"type": "string",
"default": "/* --- Begin $file --- */",
"description": "Opening comment shown at the beginning of every file. Use $file as a placeholder for the file path",
"scope": "resource"
},
"commanderV.commentAtFileEnd": {
"order": 8,
"type": "string",
"default": "/* --- End $file --- */",
"description": "Closing comment shown at the end of every file. Use $file as a placeholder for the file path",
"scope": "resource"
},
"commanderV.includeSeparator": {
"order": 9,
"type": "boolean",
"default": false,
"description": "Insert a visual separator between concatenated files to improve readability",
"scope": "resource"
},
"commanderV.separatorCharacter": {
"order": 10,
"type": "string",
"default": "-",
"maxLength": 3,
"description": "The character to use for the separator between file contents (max 3 characters)",
"scope": "resource"
},
"commanderV.separatorLength": {
"order": 11,
"type": "integer",
"default": 16,
"minimum": 1,
"maximum": 120,
"description": "The length of the separator between file contents (1-120)",
"scope": "resource"
},
"commanderV.wrapInCodeBlock": {
"order": 12,
"type": "boolean",
"default": false,
"description": "Wrap the concatenated file contents in a code block (```)",
"scope": "resource"
},
"commanderV.playSoundOnComplete": {
"order": 13,
"type": "boolean",
"default": true,
"description": "Play a sound after output is copied successfully to your clipboard",
"scope": "resource"
},
"commanderV.readFromEditor": {
"order": 14,
"type": "boolean",
"default": false,
"description": "Read unsaved contents from any open editor tab; otherwise read the last saved file",
"scope": "resource"
},
"commanderV.treeFormat": {
"order": 2.1,
"type": "string",
"default": "unicode",
"enum": [
"unicode",
"ascii"
],
"enumDescriptions": [
"Box-drawing branches (├──, └──). Best with a monospace font.",
"Plain ASCII branches (|--, `--) for apps with limited font support."
],
"description": "Branch characters used in project trees.",
"scope": "resource"
},
"commanderV.wrapTreeInCodeBlock": {
"order": 2.2,
"type": "boolean",
"default": true,
"description": "Wrap the project tree in a Markdown code block without a language label to preserve spacing in chat apps. Applies to tree-only and combined copies. Disable for raw tree text.",
"scope": "resource"
}
}
}
},
"scripts": {
"lint": "eslint .",
"test": "node --test test/unit/*.test.js",
"check": "npm run lint && npm test",
"test:integration": "node scripts/test-vscode.js",
"vscode:prepublish": "npm run check",
"package": "node scripts/package.js",
"install:local": "node scripts/vscode.js install",
"dev": "node scripts/vscode.js dev",
"test:manual": "node scripts/vscode.js test",
"audit:dependencies": "npm audit"
},
"devDependencies": {
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^4.0.0",
"eslint": "^10.11.0"
},
"dependencies": {
"ignore": "^7.0.10"
},
"license": "MIT",
"extensionKind": [
"workspace"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Copying is supported. Executable v.config.js overrides are only loaded in trusted workspaces."
},
"virtualWorkspaces": {
"supported": false,
"description": "Commander V currently supports local files and remote filesystem workspaces."
}
}
}