ekickx / clipboard-image.nvim

Neovim Lua plugin to paste image from clipboard.
MIT License
313 stars 51 forks source link

relative path base on file editing? #40

Open MichaelC001 opened 2 years ago

MichaelC001 commented 2 years ago

myconfig "img_dir = {"../assets"}" this will save image to the assets folder (which is in the parent folder of terminal current path) ,not base on the markdown file nvim is editing.

i hope can config picture folder using relative path base on markdown file.

thank you

ekickx commented 2 years ago

Really sorry for late reply. I'm still a bit confused. Is this what you mean?

├─ assets (image copied here)
└─ dir (current working dir)
   ├─ assets (but you actually want it to be in here)
   └─ markdown_dir
      └─ file.md (currently edited)
mpas commented 1 year ago

This would be great if that would be possible!

linsui commented 1 year ago

I thought @ekickx already provided a tip for this.

mpas commented 1 year ago

Totally missed that one! Thanks for pointing out @linsui