Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative path base on file editing? #40

Open
MichaelC001 opened this issue Sep 26, 2022 · 4 comments
Open

relative path base on file editing? #40

MichaelC001 opened this issue Sep 26, 2022 · 4 comments

Comments

@MichaelC001
Copy link

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
Copy link
Owner

ekickx commented Nov 2, 2022

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
Copy link

mpas commented Feb 14, 2023

This would be great if that would be possible!

@linsui
Copy link

linsui commented Mar 15, 2023

I thought @ekickx already provided a tip for this.

@mpas
Copy link

mpas commented Mar 15, 2023

Totally missed that one! Thanks for pointing out @linsui

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

No branches or pull requests

4 participants