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

Wiki Links unable to resolve if md file and folder with same name are in same directory #115

Open
miroklarin opened this issue Dec 10, 2024 · 1 comment
Labels
Bug Something isn't working tangent-electron Issues relating to the Tangent Application itself.

Comments

@miroklarin
Copy link

miroklarin commented Dec 10, 2024


tangent: v0.8.3

If topic.md and /topic directory are in same directory, wiki links can't resolve.

If I add .md to the end of wiki links, it resolves.

Links can become unresolved if directory is created.
Clicking on unresolved link will create new note named topic 1, even /topic.md already exists.
New link is still not resolved as it doesn't match created file. Every click on the link creates new file. If link is in another directory, it is not that obvious that you created more empty files.
link: [[topic]]
new file: /topic 1.md

If same file and folder with same name exists on the same level, I would expect to show note file (topic.md) as everything else is accessible from sidebar.
Also, for me, if this happens, topic.md is usually some kind of index page of /topic and it links to notes inside /topic directory.
Directory /topic is usually created after topic.md as more information is gathered, so I would expect that [[topic]] is still valid reference.

If I click on /topic directory in sidebar, I would still expect to see directory content.

@taylorhadden taylorhadden added Bug Something isn't working tangent-electron Issues relating to the Tangent Application itself. labels Dec 21, 2024
@taylorhadden taylorhadden added this to the Tangent v0.9.x milestone Dec 21, 2024
@taylorhadden
Copy link
Contributor

This one is a really nice corner case. My default is the reverse of yours, so I never ran into it: I usually have a folder that contains a note by the same name.

Seems sensible to me that [[topic]] would prefer to resolve to a /topic.md rather than /topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working tangent-electron Issues relating to the Tangent Application itself.
Projects
Status: Ready
Development

No branches or pull requests

2 participants