vscode-markdown-shortcuts icon indicating copy to clipboard operation
vscode-markdown-shortcuts copied to clipboard

Suggest image paths when adding an image

Open TobiasDev opened this issue 5 years ago • 1 comments

I love the shortscuts this gives me, mostly I love the CTRL+M feature, that is more than amazing just doing that and starting to type what I want to add.

There is one thing I think could make the image part even better though (at the same time I'm not sure if it is even possible?), it would be that when you add an image, if you start typing a relative path inside of the URL for the image, it suggests the full paths.

EG. I have a folder called "Notes", and a sub-folder called, "Inspiration". Inside of "Inspiration", I have another folder called "Attachments". So I create a new MD file inside of "Inspiration" and I want to add an image to that note. I do the CTRL+M and say I want to add an image, when it comes to the URL part, I start typing "attachments" or the image name, and the plugin auto-suggests the relative path to that image.

This would make it a lot faster to add images to your notes. Like I wrote, I'm not sure if this is possible, but it would be amazing if it was!

Thanks in advance, and keep up the great work.

// Tobias

TobiasDev avatar Apr 03 '19 07:04 TobiasDev

Thanks for the feedback, Tobias. I'm really happy to hear that you enjoy the extension!

It looks like this is possible. I found this example of something similar.

mdickin avatar Apr 03 '19 13:04 mdickin