obsidian-tasks: 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.

  • 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

  1. Create a new, empty vault
  2. 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)
  3. Create a new file called File 1
  4. Add the following content to File 1
# File 1

- [ ] Task in File 1

  1. Create a new file called File 2
  2. Add the following content to File 2
# File 2

[[File 1]] - hovering over this link should preview the contents of `File 1`.

```tasks
```

  1. In File 2, hover over the link to File 1, and confirm that you can see a preview of File 1’s contents.
  2. In File 2, hover over the backlink in the Task query block results, and confirm that there is no preview of File 1 shown.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.3.5

Tasks Plugin Version

10.2.0

Checks

  • 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

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 6
  • Comments: 15

Most upvoted comments

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:

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.

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!