|
3 | 3 | "displayName": "Markdown Shortcuts",
|
4 | 4 | "description": "Shortcuts for Markdown editing",
|
5 | 5 | "icon": "media/images/markdown-shortcuts-512x512.png",
|
6 |
| - "version": "0.6.1", |
| 6 | + "version": "0.7.0", |
7 | 7 | "publisher": "mdickin",
|
8 | 8 | "engines": {
|
9 | 9 | "vscode": "^0.10.10"
|
|
20 | 20 | "*"
|
21 | 21 | ],
|
22 | 22 | "contributes": {
|
| 23 | + "configuration": { |
| 24 | + "type": "object", |
| 25 | + "title": "Markdown Shortcuts", |
| 26 | + "properties": { |
| 27 | + "markdownShortcuts.icons.bold": { |
| 28 | + "type": "boolean", |
| 29 | + "default": true, |
| 30 | + "description": "Show bold icon in title bar" |
| 31 | + }, |
| 32 | + "markdownShortcuts.icons.italic": { |
| 33 | + "type": "boolean", |
| 34 | + "default": true, |
| 35 | + "description": "Show italic icon in title bar" |
| 36 | + }, |
| 37 | + "markdownShortcuts.icons.strikethrough": { |
| 38 | + "type": "boolean", |
| 39 | + "default": true, |
| 40 | + "description": "Show strikethrough icon in title bar" |
| 41 | + }, |
| 42 | + "markdownShortcuts.icons.bullets": { |
| 43 | + "type": "boolean", |
| 44 | + "default": true, |
| 45 | + "description": "Show bullets icon in title bar" |
| 46 | + }, |
| 47 | + "markdownShortcuts.icons.link": { |
| 48 | + "type": "boolean", |
| 49 | + "default": false, |
| 50 | + "description": "Show link icon in title bar" |
| 51 | + }, |
| 52 | + "markdownShortcuts.icons.image": { |
| 53 | + "type": "boolean", |
| 54 | + "default": false, |
| 55 | + "description": "Show image icon in title bar" |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
23 | 59 | "commands": [
|
24 |
| - |
25 | 60 | {
|
26 | 61 | "command": "md-shortcut.toggleBold",
|
27 | 62 | "title": "Toggle bold",
|
|
72 | 107 | },
|
73 | 108 | "category": "Markdown Shortcuts"
|
74 | 109 | },
|
| 110 | + { |
| 111 | + "command": "md-shortcut.toggleImage", |
| 112 | + "title": "Toggle image", |
| 113 | + "icon": { |
| 114 | + "dark": "./media/icons/image_white.svg", |
| 115 | + "light": "./media/icons/image_black.svg" |
| 116 | + }, |
| 117 | + "category": "Markdown Shortcuts" |
| 118 | + }, |
75 | 119 | {
|
76 | 120 | "command": "md-shortcut.toggleBullets",
|
77 | 121 | "title": "Toggle bullet points",
|
|
139 | 183 | "key": "ctrl+l",
|
140 | 184 | "when": "editorTextFocus && editorLangId == 'markdown'"
|
141 | 185 | },
|
| 186 | + { |
| 187 | + "command": "md-shortcut.toggleImage", |
| 188 | + "key": "ctrl+shift+l", |
| 189 | + "when": "editorTextFocus && editorLangId == 'markdown'" |
| 190 | + }, |
142 | 191 | {
|
143 | 192 | "command": "md-shortcut.toggleCodeBlock",
|
144 | 193 | "key": "ctrl+m ctrl+c",
|
|
188 | 237 | "group": "2_markdown_1@4"
|
189 | 238 | },
|
190 | 239 | {
|
191 |
| - "command": "md-shortcut.toggleCodeBlock", |
| 240 | + "command": "md-shortcut.toggleImage", |
192 | 241 | "when": "editorLangId == 'markdown'",
|
193 | 242 | "group": "2_markdown_1@5"
|
194 | 243 | },
|
195 | 244 | {
|
196 |
| - "command": "md-shortcut.toggleInlineCode", |
| 245 | + "command": "md-shortcut.toggleCodeBlock", |
197 | 246 | "when": "editorLangId == 'markdown'",
|
198 | 247 | "group": "2_markdown_1@6"
|
199 | 248 | },
|
| 249 | + { |
| 250 | + "command": "md-shortcut.toggleInlineCode", |
| 251 | + "when": "editorLangId == 'markdown'", |
| 252 | + "group": "2_markdown_1@7" |
| 253 | + }, |
200 | 254 | {
|
201 | 255 | "command": "md-shortcut.toggleBullets",
|
202 | 256 | "when": "editorLangId == 'markdown'",
|
|
226 | 280 | "editor/title": [
|
227 | 281 | {
|
228 | 282 | "command": "md-shortcut.toggleBold",
|
229 |
| - "when": "editorLangId == 'markdown'", |
| 283 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.bold", |
230 | 284 | "group": "navigation@1"
|
231 | 285 | },
|
232 | 286 | {
|
233 | 287 | "command": "md-shortcut.toggleItalic",
|
234 |
| - "when": "editorLangId == 'markdown'", |
| 288 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.italic", |
235 | 289 | "group": "navigation@2"
|
236 | 290 | },
|
237 | 291 | {
|
238 | 292 | "command": "md-shortcut.toggleStrikethrough",
|
239 |
| - "when": "editorLangId == 'markdown'", |
| 293 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.strikethrough", |
240 | 294 | "group": "navigation@3"
|
241 | 295 | },
|
242 | 296 | {
|
243 | 297 | "command": "md-shortcut.toggleBullets",
|
244 |
| - "when": "editorLangId == 'markdown'", |
| 298 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.bullets", |
245 | 299 | "group": "navigation@4"
|
| 300 | + }, |
| 301 | + { |
| 302 | + "command": "md-shortcut.toggleLink", |
| 303 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.link", |
| 304 | + "group": "navigation@5" |
| 305 | + }, |
| 306 | + { |
| 307 | + "command": "md-shortcut.toggleImage", |
| 308 | + "when": "editorLangId == 'markdown' && config.markdownShortcuts.icons.image", |
| 309 | + "group": "navigation@6" |
246 | 310 | }
|
247 | 311 | ]
|
248 | 312 | }
|
|
0 commit comments