orbikm / mkdocs-ezlinks-plugin

Plugin for mkdocs which enables easier linking between pages
MIT License
34 stars 17 forks source link

Files with same names use namespace and can't be built #18

Closed ssakhavi closed 3 years ago

ssakhavi commented 3 years ago

In Obsidian, if two files have the same name and are in different folders, the link will contain a slash. for example:

- folder1
+-- index.md
- folder2
+-- index.md

In Obsidian, the link for the first will be [[folder1/index]] and for the second it will be [[folder2/index]]. In other words: in order to distinguish between the files, it uses a namespace. There is a chance of having multiple layers of namespaces as well.

A temporary workaround is to rename the files but I suggest that a fix.

Thanks for the plugin btw.

orbikm commented 3 years ago

I had actually wanted to get this implemented, and would be relatively straightforward, if not a bit of work.

Your suggestion is reasonable, and I do want to get this functionality, and not just for obsidian links, this could work to disambiguate a number of duplicated filenames. I'll do some thinking on this and see what I can come up with. I'll be able to look into it this weekend, I'm sure.

Thanks for the issue report / feature request, and thanks for the kind words about the plugin as well!

orbikm commented 3 years ago

This feature has been merged in and released as mkdocs-ezlinks-plugin==0.1.9. Please give it a try, and let me know if this solution works for your needs. Also, please let me know if you run into any incorrect behavior using the new feature.

Thanks for using EzLinks!

ssakhavi commented 3 years ago

Thanks Mick. Will do.

On Sun, 6 Jun 2021, 1:28 pm Mick Orbik, @.***> wrote:

This feature has been merged in and released as mkdocs-ezlinks-plugin==0.1.9. Please give it a try, and let me know if this solution works for your needs. Also, please let me know if you run into any incorrect behavior using the new feature.

Thanks for using EzLinks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/orbikm/mkdocs-ezlinks-plugin/issues/18#issuecomment-855341048, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOAG6ZQXTEY35XXNI2A4C3TRMBOVANCNFSM4533P54A .