Skip to content

Conversation

@Hritik14
Copy link
Contributor

This commit tries to work on #49
An option to put all the images of current markdown file in a
directory with current filename without the extension prefixed to
mdip_imgdirwith an underscore in between.
This is supposed to help organize images related to multiple
markdown documents in the same directory.

For more customization, use expand() inside mdip_imgdir
Eg:

" The following will save all the images in the directory
../all_images/currentfilename_without_extension
let g:mdip_imgdir = '../all_images' . expand('%:r')

An option to put all the images of current markdown file in a
directory with current filename without the extension prefixed to
`mdip_imgdir`with an underscore in between.
This is supposed to help organize images related to multiple
markdown documents in the same directory.

For more customization, use `expand()` inside `mdip_imgdir`
Eg:
```vim
" The following will save all the images in the directory
../all_images/currentfilename_without_extension
let g:mdip_imgdir = '../all_images' . expand('%:r')
```
@Hritik14
Copy link
Contributor Author

Hritik14 commented Jun 8, 2021

@ysl2 Thanks for the approval. Will this be merged ?

@ferrine
Copy link
Collaborator

ferrine commented Jun 9, 2021

Your code assumes you work with only one file. Opening another file within the session will not use a different name for prefix

@ferrine
Copy link
Collaborator

ferrine commented Jan 22, 2022

I think this PR is covered by #61, I'll reopen it on your notice if you want to continue

@ferrine ferrine closed this Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants