open image

This commit is contained in:
notoriousmango
2024-11-26 19:53:31 +09:00
parent 6b2777169d
commit 0b243279cc
7 changed files with 64 additions and 2 deletions

View File

@@ -125,6 +125,11 @@
"title": "%markdown.copyImage.title%",
"category": "Markdown"
},
{
"command": "_markdown.openImage",
"title": "%markdown.openImage.title%",
"category": "Markdown"
},
{
"command": "markdown.showPreview",
"title": "%markdown.preview.title%",
@@ -189,7 +194,11 @@
"webview/context": [
{
"command": "_markdown.copyImage",
"when": "webviewId == 'markdown.preview' && webviewSection == 'image'"
"when": "webviewId == 'markdown.preview' && (webviewSection == 'image' || webviewSection == 'localImage')"
},
{
"command": "_markdown.openImage",
"when": "webviewId == 'markdown.preview' && webviewSection == 'localImage'"
}
],
"editor/title": [
@@ -244,6 +253,10 @@
}
],
"commandPalette": [
{
"command": "_markdown.openImage",
"when": "false"
},
{
"command": "_markdown.copyImage",
"when": "false"