obsidian-tasks
obsidian-tasks copied to clipboard
Preview when hovering over backlinks no longer works as of ver 3.4.0 or later
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
When hovering over a link in a task query it should show a preview window when the core plugin Page Preview is enabled.
Current behaviour
Previews do not show up.
Steps to reproduce
- Create a new, empty vault
- Add and enable Tasks, from the Community Plugins store
- The bug appears from Tasks 3.4.0 onwards, but just download the current version, as normal (so long as this issue is still open)
- Create a new file called
File 1
- Add the following content to
File 1
# File 1
- [ ] Task in File 1
- Create a new file called
File 2
- Add the following content to
File 2
# File 2
[[File 1]] - hovering over this link should preview the contents of `File 1`.
```tasks
```
- In
File 2
, hover over the link to File 1, and confirm that you can see a preview ofFile 1
's contents. - In
File 2
, hover over the backlink in the Task query block results, and confirm that there is no preview ofFile 1
shown.
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [X] Linux
- [ ] macOS
- [ ] Windows
Obsidian Version
1.3.5
Tasks Plugin Version
10.2.0
Checks
- [X] I have tried it with all other plugins disabled and the error still occurs
Possible solution
This bug was introduced in ver 3.4.0
Backlink previews work correctly in ver 3.3.0 and before
Hi, thanks for logging it - please could there be a complete numbered list of steps in the reproduction, starting from 'empty vault, with just Tasks installed'....
I updated the steps above, though I'm not sure if that's what you wanted.
I updated the steps above, though I'm not sure if that's what you wanted.
Thanks - is the core plugin enabled by default, and with its settings not needing to be updated for hovering to just work?
In my test vault the Page Preview core plugin was enabled by default and the settings for it require pressing the ctrl/cmd key while hovering for everything except reading mode. Reading mode shows the preview just by hovering over the link.
Brilliant - thanks!
I’ve tested the repro, confirmed it does of course show the bug, and tweaked it a bit for ease of use.
Thank you @gypsyav for bringing this up. I'm also dearly missing the preview in my Tasks workflow. I hope it will get resolved soon. Anyway, thank you so much for this wonderful plugin @claremacrae!
@datoner best to upvote it with a 👍 then.
It's not exactly a fix, but in case it helps... Tasks 4.8.0, just released, now adds hyperlinks on group by backlinks
headings... and hovering over those does show hover previews.
I still prefer the previous backlinks, which can be presented directly at the end of the task.I hope it can be resolved. Thank you
I created a workaround by adding my own backlink to the task description or using a backlink as a task description. I then use 'hide backlink' to hide the non functional one to keep it short and neat.
Op wo 8 nov. 2023 03:29 schreef Fendi168 @.***>:
I still prefer the previous backlinks, which can be presented directly at the end of the task.I hope it can be resolved. Thank you
— Reply to this email directly, view it on GitHub https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2127#issuecomment-1800910272, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB7YEHNQ3RL2M6SRLJ5NFJTYDLVBVAVCNFSM6AAAAAA2KV6HTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQHEYTAMRXGI . You are receiving this because you were mentioned.Message ID: @.***>
@datoner,
I created a workaround by adding my own backlink to the task description or using a backlink as a task description. I then use 'hide backlink' to hide the non functional one to keep it short and neat.
How did you do that?
I guess the changes to QueryRenderer.ts in b97e103ed611fb578d2cd0e45dfa3e2a87acc55c are responsible?
I guess the changes to QueryRenderer.ts in b97e103 are responsible?
Yes that's right. That's the code from #1810, which fixed the following:
- https://github.com/obsidian-tasks-group/obsidian-tasks/issues/1618.
@wjagers If it's something you might be interesting in having a look at, I'd be happy to chat with you and show you the relevant bits of the code...