agathauy / wikilinks-to-mdlinks-obsidian

An Obsidian md plugin which allows for the conversion of individually selected wikilinks to markdown links, and vice versa.
105 stars 13 forks source link

Support for wikilinks to notes in a different directory #8

Open mukulkhanna opened 3 years ago

mukulkhanna commented 3 years ago

Thank you for making this super useful tool.

At the moment, this plugin is unable to create appropriate links for wikilinks leading to a note in some other folder. For example, if my folder structure is this —

/foo
    /foo.md
/bar
    /bar.md

And if in foo.md, if I have a wikilink to bar.md, as shown below –

[[bar]]

then on using the plugin, this becomes –

[bar](bar.md)

This seems to be consistent with Obsidian in that Obsidian can still link to the bar file even if it's in a different directory. But for all other Markdown-based platforms, like Github, the path (in foo.md) is expected to be –

[bar](../bar/bar.md)

Would there be a way to accommodate this inside your plugin? It would be super helpful in making my Obsidian notes be easily navigable on Github. Thank you!

cumany commented 2 years ago

Maybe you need to set link format like this

options--new link format ---Relative path to file

JBlond commented 1 year ago

@agathauy Do you think you gonna tackle this? The last commit was on Dec 4th, 2020

nikhilmaddirala commented 3 months ago

Any suggested workarounds for this? This plugin is currently unusable if you have multiple folders.