telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
136 stars 41 forks source link

Add an option for set the name of the image #122

Closed zjinc36 closed 1 year ago

zjinc36 commented 1 year ago

I hope to add an option that we can set the image name

image

henrik-forsell commented 1 year ago

There is a setting for this already, depending on what you want. I have the following as the Name Base. ${datetime|yyyy-MM-DD_HH-mm-ss}${selectedText}

Example: Select the text Leading with data Paste the image and it comes out as: ![Leading with data](../images/2023-05-19_16-48-52Leading%20with%20data.png) (Actually, I tend to have a space before the text and select that too to get a nicer file name.)

I hope it would work for you.