|
| 1 | +{ |
| 2 | + "name": "quick-command-buttons", |
| 3 | + "displayName": "Quick Command Buttons", |
| 4 | + "description": "Add customizable buttons to quickly execute commands in VS Code", |
| 5 | + "version": "0.1.1", |
| 6 | + "publisher": "KubrickCode", |
| 7 | + "license": "MIT", |
| 8 | + "repository": { |
| 9 | + "type": "git", |
| 10 | + "url": "https://github.com/KubrickCode/quick-command-buttons.git" |
| 11 | + }, |
| 12 | + "engines": { |
| 13 | + "vscode": "^1.90.0" |
| 14 | + }, |
| 15 | + "categories": [ |
| 16 | + "Other" |
| 17 | + ], |
| 18 | + "keywords": [ |
| 19 | + "commands", |
| 20 | + "buttons", |
| 21 | + "quick", |
| 22 | + "shortcuts", |
| 23 | + "productivity" |
| 24 | + ], |
| 25 | + "activationEvents": [ |
| 26 | + "onStartupFinished" |
| 27 | + ], |
| 28 | + "main": "./out/src/main.js", |
| 29 | + "contributes": { |
| 30 | + "commands": [ |
| 31 | + { |
| 32 | + "command": "quickCommandButtons.refresh", |
| 33 | + "title": "Refresh Quick Command Buttons", |
| 34 | + "icon": "$(refresh)" |
| 35 | + }, |
| 36 | + { |
| 37 | + "command": "quickCommandButtons.refreshTree", |
| 38 | + "title": "Refresh Tree View" |
| 39 | + }, |
| 40 | + { |
| 41 | + "command": "quickCommandButtons.executeFromTree", |
| 42 | + "title": "Execute Command from Tree" |
| 43 | + }, |
| 44 | + { |
| 45 | + "command": "quickCommandButtons.showAllCommands", |
| 46 | + "title": "Show All Quick Commands", |
| 47 | + "category": "Quick Commands" |
| 48 | + }, |
| 49 | + { |
| 50 | + "command": "quickCommandButtons.openConfig", |
| 51 | + "title": "Open Configuration UI", |
| 52 | + "category": "Quick Commands", |
| 53 | + "icon": "$(gear)" |
| 54 | + } |
| 55 | + ], |
| 56 | + "viewsContainers": { |
| 57 | + "activitybar": [ |
| 58 | + { |
| 59 | + "id": "quickCommandsContainer", |
| 60 | + "title": "Quick Commands", |
| 61 | + "icon": "$(terminal)" |
| 62 | + } |
| 63 | + ] |
| 64 | + }, |
| 65 | + "views": { |
| 66 | + "quickCommandsContainer": [ |
| 67 | + { |
| 68 | + "id": "quickCommandsTree", |
| 69 | + "name": "Commands" |
| 70 | + } |
| 71 | + ] |
| 72 | + }, |
| 73 | + "menus": { |
| 74 | + "view/title": [ |
| 75 | + { |
| 76 | + "command": "quickCommandButtons.refreshTree", |
| 77 | + "when": "view == quickCommandsTree", |
| 78 | + "group": "navigation" |
| 79 | + }, |
| 80 | + { |
| 81 | + "command": "quickCommandButtons.openConfig", |
| 82 | + "when": "view == quickCommandsTree", |
| 83 | + "group": "navigation" |
| 84 | + } |
| 85 | + ] |
| 86 | + }, |
| 87 | + "keybindings": [ |
| 88 | + { |
| 89 | + "command": "quickCommandButtons.showAllCommands", |
| 90 | + "key": "ctrl+shift+;", |
| 91 | + "mac": "cmd+shift+;" |
| 92 | + } |
| 93 | + ], |
| 94 | + "configuration": { |
| 95 | + "title": "Quick Command Buttons", |
| 96 | + "properties": { |
| 97 | + "quickCommandButtons.refreshButton": { |
| 98 | + "type": "object", |
| 99 | + "default": { |
| 100 | + "icon": "$(refresh)", |
| 101 | + "color": "#00BCD4", |
| 102 | + "enabled": true |
| 103 | + }, |
| 104 | + "description": "Configuration for the refresh button", |
| 105 | + "properties": { |
| 106 | + "icon": { |
| 107 | + "type": "string", |
| 108 | + "default": "$(refresh)", |
| 109 | + "description": "Icon for the refresh button (supports $(icon-name) syntax)" |
| 110 | + }, |
| 111 | + "color": { |
| 112 | + "type": "string", |
| 113 | + "default": "#00BCD4", |
| 114 | + "description": "Color for the refresh button" |
| 115 | + }, |
| 116 | + "enabled": { |
| 117 | + "type": "boolean", |
| 118 | + "default": true, |
| 119 | + "description": "Enable/disable the refresh button" |
| 120 | + } |
| 121 | + } |
| 122 | + }, |
| 123 | + "quickCommandButtons.buttons": { |
| 124 | + "type": "array", |
| 125 | + "default": [ |
| 126 | + { |
| 127 | + "name": "$(terminal) Terminal", |
| 128 | + "command": "workbench.action.terminal.new", |
| 129 | + "useVsCodeApi": true, |
| 130 | + "color": "#2196F3", |
| 131 | + "shortcut": "t" |
| 132 | + }, |
| 133 | + { |
| 134 | + "name": "$(git-branch) Git", |
| 135 | + "color": "#FF9800", |
| 136 | + "shortcut": "g", |
| 137 | + "group": [ |
| 138 | + { |
| 139 | + "name": "$(git-commit) Status", |
| 140 | + "command": "git status", |
| 141 | + "shortcut": "s" |
| 142 | + }, |
| 143 | + { |
| 144 | + "name": "$(diff) Diff", |
| 145 | + "command": "git diff", |
| 146 | + "shortcut": "d" |
| 147 | + }, |
| 148 | + { |
| 149 | + "name": "$(arrow-circle-up) Push", |
| 150 | + "command": "git push", |
| 151 | + "shortcut": "p" |
| 152 | + } |
| 153 | + ] |
| 154 | + } |
| 155 | + ], |
| 156 | + "description": "Configuration for quick command buttons", |
| 157 | + "items": { |
| 158 | + "type": "object", |
| 159 | + "properties": { |
| 160 | + "name": { |
| 161 | + "type": "string", |
| 162 | + "description": "Button label (supports $(icon-name) syntax)" |
| 163 | + }, |
| 164 | + "command": { |
| 165 | + "type": "string", |
| 166 | + "description": "Command to execute (for single buttons)" |
| 167 | + }, |
| 168 | + "useVsCodeApi": { |
| 169 | + "type": "boolean", |
| 170 | + "default": false, |
| 171 | + "description": "Use VS Code API instead of terminal" |
| 172 | + }, |
| 173 | + "color": { |
| 174 | + "type": "string", |
| 175 | + "description": "Button text color" |
| 176 | + }, |
| 177 | + "shortcut": { |
| 178 | + "type": "string", |
| 179 | + "description": "Single key shortcut for quick access (e.g. 'q', '1', 'F1')" |
| 180 | + }, |
| 181 | + "terminalName": { |
| 182 | + "type": "string", |
| 183 | + "description": "Custom terminal name" |
| 184 | + }, |
| 185 | + "executeAll": { |
| 186 | + "type": "boolean", |
| 187 | + "default": false, |
| 188 | + "description": "Execute all commands in group simultaneously" |
| 189 | + }, |
| 190 | + "group": { |
| 191 | + "type": "array", |
| 192 | + "description": "Sub-commands for grouped buttons (supports infinite nesting)", |
| 193 | + "items": { |
| 194 | + "$ref": "#/properties/quickCommandButtons.buttons/items" |
| 195 | + } |
| 196 | + } |
| 197 | + }, |
| 198 | + "required": [ |
| 199 | + "name" |
| 200 | + ], |
| 201 | + "anyOf": [ |
| 202 | + { |
| 203 | + "required": [ |
| 204 | + "command" |
| 205 | + ] |
| 206 | + }, |
| 207 | + { |
| 208 | + "required": [ |
| 209 | + "group" |
| 210 | + ] |
| 211 | + } |
| 212 | + ] |
| 213 | + } |
| 214 | + } |
| 215 | + } |
| 216 | + } |
| 217 | + }, |
| 218 | + "scripts": { |
| 219 | + "package": "vsce package --out versions/", |
| 220 | + "install-package": "code --install-extension versions/quick-command-buttons-$npm_package_version.vsix", |
| 221 | + "vsce-publish": "vsce publish", |
| 222 | + "ovsx-publish": "ovsx publish" |
| 223 | + }, |
| 224 | + "devDependencies": { |
| 225 | + "@vscode/vsce": "3.0.0" |
| 226 | + }, |
| 227 | + "dependencies": {} |
| 228 | +} |
0 commit comments