Skip to content

Commit

Permalink
fix: show markdown preview menus (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Mar 6, 2025
1 parent c50d38b commit d58b6ef
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,83 @@
]
}
],
"menus": {
"editor/title": [
{
"command": "markdown.showPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused && !hasCustomMarkdownPreview",
"alt": "markdown.showPreview",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "markdown.showPreview",
"when": "resourceLangId == mdc && !hasCustomMarkdownPreview",
"group": "navigation"
},
{
"command": "markdown.findAllFileReferences",
"when": "resourceLangId == mdc",
"group": "4_search"
}
],
"editor/title/context": [
{
"command": "markdown.showPreview",
"when": "resourceLangId == mdc && !hasCustomMarkdownPreview",
"group": "1_open"
},
{
"command": "markdown.findAllFileReferences",
"when": "resourceLangId == mdc"
}
],
"commandPalette": [
{
"command": "markdown.showPreview",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showLockedPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showPreviewSecuritySelector",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.preview.refresh",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.findAllFileReferences",
"when": "editorLangId == mdc"
}
]
},
"keybindings": [
{
"command": "markdown.showPreview",
"key": "shift+ctrl+v",
"mac": "shift+cmd+v",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.showPreviewToSide",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorLangId == mdc && !notebookEditorFocused"
}
],

"snippets": [
{
"language": "mdc",
Expand Down

0 comments on commit d58b6ef

Please sign in to comment.