Skip to content

Commit

Permalink
[VS Code] Try to match GitHub's smart Markdown link paste behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 21, 2023
1 parent 14bfc58 commit 96aa834
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,21 @@
"when": "editorHasSelection"
},
{
"key": "shift+cmd+v",
"command": "-notebook.cell.pasteAbove",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "shift+cmd+v",
"command": "-markdown.showPreview",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
},
{
"key": "shift+cmd+v",
"key": "cmd+v",
"command": "editor.action.pasteAs",
"args": {
"id": "text"
},
"when": "editorLangId == 'markdown'"
"when": "!editorHasSelection && editorLangId == 'markdown'"
},
{
"key": "cmd+v",
"command": "editor.action.clipboardPasteAction",
"args": {},
"when": "editorHasSelection || editorLangId != 'markdown'"
},
{
"key": "cmd+v",
"command": "-editor.action.clipboardPasteAction"
}
]

0 comments on commit 96aa834

Please sign in to comment.