clipboard-image.nvim icon indicating copy to clipboard operation
clipboard-image.nvim copied to clipboard

relative path base on file editing?

Open MichaelC001 opened this issue 3 years ago • 4 comments

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

MichaelC001 avatar Sep 26 '22 04:09 MichaelC001

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)

ekickx avatar Nov 02 '22 16:11 ekickx

This would be great if that would be possible!

mpas avatar Feb 14 '23 19:02 mpas

I thought @ekickx already provided a tip for this.

linsui avatar Mar 15 '23 05:03 linsui

Totally missed that one! Thanks for pointing out @linsui

mpas avatar Mar 15 '23 08:03 mpas