vscode-paste-image icon indicating copy to clipboard operation
vscode-paste-image copied to clipboard

possibility to change insert pattern according to file extension ?

Open xiaoouwang opened this issue 5 years ago • 1 comments

it would be nice to be able to have multiple insert patterns ( basename, prefix etc) according to html markdown or latex files.

Is it possible to implement this feature ?

Tks for the great plugin !

xiaoouwang avatar Jan 13 '20 23:01 xiaoouwang

making the extension language dependent (at least for the 'insertPattern' option) would be great. for instance for the asciidoc language:

  "[asciidoc]": {
    "pasteImage.insertPattern": "${imageSyntaxPrefix}${imageFileName}${imageSyntaxSuffix}"
  }

and for the markdown language:

  "[markdown]": {
    "pasteImage.insertPattern": "${imageSyntaxPrefix}${imageFilePath}${imageSyntaxSuffix}"
  }

Difference is that asciidoc already has a default image location specified in the configuration (so adding the 'imageFileName' is sufficient in your plugin), but for markdown I want to add the full relative path 'imageFilePath'

Great extension btw!

SjoerdV avatar May 14 '21 12:05 SjoerdV