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

linkedto doesn't work with PATH #162

Closed
Coursitout opened this issue May 11, 2023 · 3 comments
Closed

linkedto doesn't work with PATH #162

Coursitout opened this issue May 11, 2023 · 3 comments
Labels
p1 High

Comments

@Coursitout
Copy link

Hi,

linkedto seems to only work with the title of a note, but not with the path. Ex. in my Query format with (linkedto:"$PATH$" OR linkedfrom:"$PATH$") it doesn't work but if I manually replace it with

linkedto:"Napoleon Bonaparte" it works.

And it doesn't work with linkedto:"Notes/Napoleon Bonaparte.md", which works with linkfrom.

@esm7
Copy link
Owner

esm7 commented May 14, 2023

  1. Can you make sure you are using Map View 3.0.2 (released last week) which fixes this issue that might be related: Combined Query does not work #158
  2. If that's not the same issue, can you paste the full query that doesn't work for you after the expansion of $PATH$? i.e. click "focus ... on Map View" so the filter would be updated to linkedto:"your note path" OR linkedfrom:"your note path" and copy that filter (which should not include the $PATH$ string)?

@Coursitout
Copy link
Author

Thanks for your answer. I'm using 3.0.2, but I don't think it's the same issue, last week it didn't work at all when putting the two PATH with OR, now it works but it only shows one of them.

This is the query I get for my note on Philo :

linkedto:"Notes/Philo.md" OR linkedfrom:"Notes/Philo.md"

On the map, it shows notes from linkedfrom:"Notes/Philo.md" but doesn't show the linkedto:"Notes/Philo.md" part.

@esm7 esm7 added the p1 High label May 23, 2023
@esm7
Copy link
Owner

esm7 commented Jul 28, 2023

I believe this is fixed in the just-released version 4.0.0. The linkedto mechanism used string matches while linkedfrom used the Obsidian link resolving mechanism. I changed the linkedto to use link resolving as well, although being a bit concerned that it will break some users' queries who have been counting on partial matches to work. But I believe this is the better way to implement this feature.

@esm7 esm7 closed this as completed Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 High
Projects
None yet
Development

No branches or pull requests

2 participants