img-paste-devs / img-paste.vim

paste image to markdown
383 stars 86 forks source link

[Improvement] Different image directory name + img paste name #49

Open Hritik14 opened 3 years ago

Hritik14 commented 3 years ago

Different Image directory name

An option to put all the images of current markdown file in a directory with current filename without the .md extension and _img suffix would be nice addition. I use this plugin heavily for my blog posts, it'd help me a lot. I hope I can make the mdip_imgdir variable to take formats which allow embedding filenames in it. Something like let g:mdip_imgdir = '${FILE}_img

Img paste name

The PR #23 brought selection typing for image name, it should ideally fill same image names in alt text and image path.

These are very minor improvements, I'd like to work on them once I get some time.

ferrine commented 3 years ago

Great, go ahead

Hritik14 commented 3 years ago

Just realized the second improvement has already been made in the latest commit #44. I've issued a PR for the first one.

lipingcoding commented 2 years ago

Different Image directory name

An option to put all the images of current markdown file in a directory with current filename without the .md extension and _img suffix would be nice addition. I use this plugin heavily for my blog posts, it'd help me a lot. I hope I can make the mdip_imgdir variable to take formats which allow embedding filenames in it. Something like let g:mdip_imgdir = '${FILE}_img

Img paste name

The PR #23 brought selection typing for image name, it should ideally fill same image names in alt text and image path.

These are very minor improvements, I'd like to work on them once I get some time.

Is the first improvement finished ?