|
3 | 3 | "displayName": "Save Commands", |
4 | 4 | "description": "Simple VSCode Extension to save and execute terminal commands.", |
5 | 5 | "icon": "media/save-commands.png", |
6 | | - "version": "0.5.1", |
| 6 | + "version": "1.0.0", |
7 | 7 | "engines": { |
8 | 8 | "vscode": "^1.74.0" |
9 | 9 | }, |
10 | | - "categories": [ |
11 | | - "Other" |
12 | | - ], |
| 10 | + "keywords": ["commands", "productivity", "workflows", "terminal"], |
| 11 | + "categories": ["Other"], |
13 | 12 | "main": "./dist/extension.js", |
14 | 13 | "contributes": { |
15 | 14 | "configuration": { |
|
25 | 24 | "doubleAngleBraces" |
26 | 25 | ], |
27 | 26 | "description": "Set placeholder string type. This will be used to detect placeholders in your commands. This won't affect your existing commands", |
28 | | - "enumDescriptions": [ |
29 | | - "{name}", |
30 | | - "{{name}}", |
31 | | - "<name>", |
32 | | - "<<name>>" |
33 | | - ] |
| 27 | + "enumDescriptions": ["{name}", "{{name}}", "<name>", "<<name>>"] |
34 | 28 | } |
35 | 29 | } |
36 | 30 | }, |
|
72 | 66 | "category": "Save Commands" |
73 | 67 | }, |
74 | 68 | { |
75 | | - "command": "save-commands.addGlobalCommand", |
76 | | - "title": "Add Global Command", |
| 69 | + "command": "save-commands.editFolder", |
| 70 | + "title": "Edit Folder", |
77 | 71 | "icon": { |
78 | | - "light": "resources/light/add.svg", |
79 | | - "dark": "resources/dark/add.svg" |
80 | | - }, |
81 | | - "category": "Save Commands" |
82 | | - }, |
83 | | - { |
84 | | - "command": "save-commands.deleteWorkspaceCommands", |
85 | | - "title": "Delete Workspace Commands", |
86 | | - "icon": { |
87 | | - "light": "resources/light/trash.svg", |
88 | | - "dark": "resources/dark/trash.svg" |
| 72 | + "light": "resources/light/edit.svg", |
| 73 | + "dark": "resources/dark/edit.svg" |
89 | 74 | }, |
90 | 75 | "category": "Save Commands" |
91 | 76 | }, |
92 | 77 | { |
93 | | - "command": "save-commands.deleteGlobalCommands", |
94 | | - "title": "Delete Global Commands", |
| 78 | + "command": "save-commands.deleteCommands", |
| 79 | + "title": "Delete Commands", |
95 | 80 | "icon": { |
96 | 81 | "light": "resources/light/trash.svg", |
97 | 82 | "dark": "resources/dark/trash.svg" |
|
124 | 109 | "light": "resources/light/copy.svg", |
125 | 110 | "dark": "resources/dark/copy.svg" |
126 | 111 | } |
| 112 | + }, |
| 113 | + { |
| 114 | + "command": "save-commands.addFolder", |
| 115 | + "title": "Add Folder", |
| 116 | + "category": "Save Commands", |
| 117 | + "icon": { |
| 118 | + "light": "resources/light/new_folder.svg", |
| 119 | + "dark": "resources/dark/new_folder.svg" |
| 120 | + } |
| 121 | + }, |
| 122 | + { |
| 123 | + "command": "save-commands.deleteFolder", |
| 124 | + "title": "Delete Folder", |
| 125 | + "category": "Save Commands", |
| 126 | + "icon": { |
| 127 | + "light": "resources/light/trash.svg", |
| 128 | + "dark": "resources/dark/trash.svg" |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "command": "save-commands.export", |
| 133 | + "title": "Export", |
| 134 | + "category": "Save Commands", |
| 135 | + "icon": { |
| 136 | + "light": "resources/light/export.svg", |
| 137 | + "dark": "resources/dark/export.svg" |
| 138 | + } |
| 139 | + }, |
| 140 | + { |
| 141 | + "command": "save-commands.import", |
| 142 | + "title": "Import", |
| 143 | + "category": "Save Commands", |
| 144 | + "icon": { |
| 145 | + "light": "resources/light/import.svg", |
| 146 | + "dark": "resources/dark/import.svg" |
| 147 | + } |
127 | 148 | } |
128 | 149 | ], |
129 | 150 | "views": { |
|
144 | 165 | "command": "save-commands.deleteCommand", |
145 | 166 | "when": "false" |
146 | 167 | }, |
| 168 | + { |
| 169 | + "command": "save-commands.deleteCommands", |
| 170 | + "when": "false" |
| 171 | + }, |
147 | 172 | { |
148 | 173 | "command": "save-commands.editCommand", |
149 | 174 | "when": "false" |
|
161 | 186 | "when": "false" |
162 | 187 | }, |
163 | 188 | { |
164 | | - "command": "save-commands.reset", |
| 189 | + "command": "save-commands.reset" |
| 190 | + }, |
| 191 | + { |
| 192 | + "command": "save-commands.addFolder", |
165 | 193 | "when": "false" |
| 194 | + }, |
| 195 | + { |
| 196 | + "command": "save-commands.deleteFolder", |
| 197 | + "when": "false" |
| 198 | + }, |
| 199 | + { |
| 200 | + "command": "save-commands.addCommand", |
| 201 | + "when": "false" |
| 202 | + }, |
| 203 | + { |
| 204 | + "command": "save-commands.editFolder", |
| 205 | + "when": "false" |
| 206 | + }, |
| 207 | + { |
| 208 | + "command": "save-commands.import" |
| 209 | + }, |
| 210 | + { |
| 211 | + "command": "save-commands.export" |
166 | 212 | } |
167 | 213 | ], |
168 | 214 | "view/title": [ |
169 | 215 | { |
170 | 216 | "command": "save-commands.reset", |
171 | 217 | "when": "view == save-commands-view" |
172 | 218 | }, |
| 219 | + { |
| 220 | + "command": "save-commands.export", |
| 221 | + "when": "view == save-commands-view", |
| 222 | + "group": "Backup" |
| 223 | + }, |
| 224 | + { |
| 225 | + "command": "save-commands.import", |
| 226 | + "when": "view == save-commands-view", |
| 227 | + "group": "Backup" |
| 228 | + }, |
173 | 229 | { |
174 | 230 | "command": "save-commands.refreshView", |
175 | 231 | "when": "view == save-commands-view", |
|
179 | 235 | "view/item/context": [ |
180 | 236 | { |
181 | 237 | "command": "save-commands.editCommand", |
182 | | - "when": "view == save-commands-view && viewItem == child-global || viewItem == child-workspace" |
| 238 | + "when": "view == save-commands-view && viewItem == command" |
183 | 239 | }, |
184 | 240 | { |
185 | 241 | "command": "save-commands.deleteCommand", |
186 | | - "when": "view == save-commands-view && viewItem == child-global || viewItem == child-workspace" |
| 242 | + "when": "view == save-commands-view && viewItem == command" |
| 243 | + }, |
| 244 | + { |
| 245 | + "command": "save-commands.deleteFolder", |
| 246 | + "when": "view == save-commands-view && viewItem == folder" |
| 247 | + }, |
| 248 | + { |
| 249 | + "command": "save-commands.editFolder", |
| 250 | + "when": "view == save-commands-view && viewItem == folder" |
187 | 251 | }, |
188 | 252 | { |
189 | 253 | "command": "save-commands.copyCommand", |
190 | | - "when": "view == save-commands-view && viewItem == child-global || viewItem == child-workspace", |
| 254 | + "when": "view == save-commands-view && viewItem == command", |
191 | 255 | "group": "inline" |
192 | 256 | }, |
193 | 257 | { |
194 | 258 | "command": "save-commands.runCommand", |
195 | 259 | "group": "inline", |
196 | | - "when": "view == save-commands-view && viewItem == child-global || viewItem == child-workspace" |
| 260 | + "when": "view == save-commands-view && viewItem == command" |
197 | 261 | }, |
198 | 262 | { |
199 | 263 | "command": "save-commands.runCommandInActiveTerminal", |
200 | 264 | "group": "inline", |
201 | | - "when": "view == save-commands-view && viewItem == child-global || viewItem == child-workspace" |
| 265 | + "when": "view == save-commands-view && viewItem == command" |
202 | 266 | }, |
203 | 267 | { |
204 | 268 | "command": "save-commands.addCommand", |
205 | 269 | "group": "inline", |
206 | | - "when": "view == save-commands-view && viewItem == parent-workspace" |
| 270 | + "when": "view == save-commands-view && viewItem == root || viewItem == folder" |
207 | 271 | }, |
208 | 272 | { |
209 | | - "command": "save-commands.addGlobalCommand", |
210 | | - "group": "inline", |
211 | | - "when": "view == save-commands-view && viewItem == parent-global" |
212 | | - }, |
213 | | - { |
214 | | - "command": "save-commands.deleteWorkspaceCommands", |
215 | | - "group": "inline", |
216 | | - "when": "view == save-commands-view && viewItem == parent-workspace" |
| 273 | + "command": "save-commands.deleteCommands", |
| 274 | + "when": "view == save-commands-view && viewItem == root" |
217 | 275 | }, |
218 | 276 | { |
219 | | - "command": "save-commands.deleteGlobalCommands", |
| 277 | + "command": "save-commands.addFolder", |
220 | 278 | "group": "inline", |
221 | | - "when": "view == save-commands-view && viewItem == parent-global" |
| 279 | + "when": "view == save-commands-view && viewItem == root || viewItem == folder" |
222 | 280 | } |
223 | 281 | ] |
224 | 282 | } |
|
231 | 289 | "test-compile": "tsc -p ./", |
232 | 290 | "test-watch": "tsc -watch -p ./", |
233 | 291 | "pretest": "yarn run test-compile && yarn run lint", |
234 | | - "lint": "eslint src --ext ts", |
| 292 | + "lint": "biome lint ./src", |
| 293 | + "lint:fix": "biome lint --write --unsafe ./src", |
| 294 | + "format": "biome format --write ./src", |
235 | 295 | "test": "node ./out/test/runTest.js", |
236 | 296 | "unit-test": "mocha" |
237 | 297 | }, |
238 | 298 | "devDependencies": { |
239 | | - "@types/glob": "^7.2.0", |
| 299 | + "@biomejs/biome": "^1.8.3", |
| 300 | + "@types/glob": "^8.1.0", |
240 | 301 | "@types/mocha": "^9.1.1", |
241 | 302 | "@types/node": "^18.6.4", |
242 | 303 | "@types/vscode": "^1.74.0", |
243 | 304 | "@typescript-eslint/eslint-plugin": "^5.59.0", |
244 | 305 | "@typescript-eslint/parser": "^5.59.0", |
245 | 306 | "@vscode/test-electron": "^2.1.5", |
246 | | - "eslint": "^8.21.0", |
247 | | - "glob": "^8.0.3", |
| 307 | + "glob": "^11.0.0", |
248 | 308 | "mocha": "^10.2.0", |
249 | 309 | "ts-loader": "^9.4.2", |
250 | 310 | "ts-node": "^10.9.1", |
|
0 commit comments