rmellmer / obsidian-link-range

Add ranged link support to Obsidian
MIT License
22 stars 0 forks source link

Can't get it to work - No match found #12

Open Cattamer opened 5 months ago

Cattamer commented 5 months ago

After installing and enabling plugin, nothing happens.

Can create links / embeddings as usual, but when I try to add .. to select the next heading I always get 'No match found'. What do I do wrong?

Screenshot 2024-05-22 at 16 40 41
rmellmer commented 5 months ago

Hmm I haven’t experienced this. Mind sending a screenshot of your link range plugin settings?

Cattamer commented 5 months ago

Just standard, nothing changed.

Screenshot 2024-05-22 at 16 41 55
Cattamer commented 5 months ago

Ok. I did some testing. I created an new empty vault, everything standard except for the Link Range plugin. When creating a link range, the range is accepted when you type the query at once AND hit enter. If I moved the cursor behind the closing brackets ]] , sometimes it would be able to find the range, at other times I was greeted with this message:

Screenshot 2024-05-22 at 18 27 07

In my existing vault I managed to get it work half of the time. The first query is a normal one without range. The second query is the one that doesn't work (maybe the source tree is a bit difficult, hence the problems?). The third query is from a simple file in the root folder of the vault.

Screenshot 2024-05-22 at 18 29 28
rmellmer commented 5 months ago

Thanks for the details!

I can confirm the issue with the source tree path there. I created a similar path (HTB/01 - Genesis/Genesis 1#v1..v2) in a test vault and I had issues getting the plugin to work. However, if I just reference the file as [[Genesis 1#v1..v2]] it works. I can see about fixing this issue