mushanshitiancai / vscode-paste-image

paste image from clipboard to markdown/asciidoc directly!
MIT License
422 stars 127 forks source link

Image name in markdown file different than files name in assets/image.png. #38

Open SeaDude opened 5 years ago

SeaDude commented 5 years ago

Hello, Thank you for your work on this extension. Today I took many screenshots with the tool. All screenshots were pasted into the .md file as normal:

image

HOWEVER, the files were created in the assets/ folder with an "_" in the date as opposed to a "-".

image

This caused all screenshots to not appear in preview. I had to correct all the filenames. Do you know why this occurred?

SeaDude commented 5 years ago

Also I'm noticing... changing the name was not enough! The Timestamps of the pasted imaged do not equal the timestamp of the image saved in assets/ ! I'm having to go through each image and determine where in my notes it goes. oh man!

mushanshitiancai commented 5 years ago

It's so strange...

Is it work well when you select text as the file name?

SeaDude commented 5 years ago

I'm not sure what you refer to by "..text as the file name". In Settings/Extension/Paste Image, I set the Paste Image Name to test. image This images are pasted now as: image But still show blank in the Markdown Preview and PDF.