obsidian-tasks icon indicating copy to clipboard operation
obsidian-tasks copied to clipboard

Tasks Query results do not show inline footnotes on tasks that are in different markdown files than the query

Open Fendi168 opened this issue 1 year ago • 5 comments

Please check that this issue hasn't been reported before.

  • [X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

I hope to support inline footnotes like Obsidian, so that the plugin "better footnote" can preview footnotes,thank you very much indeed

Current behaviour

Inline footnotes cannot be displayed in current testing, however, official documentation supports inline footnotes 图片2 图片3

Steps to reproduce

Here is the minimum vault I have created test.zip

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [ ] macOS
  • [X] Windows

Obsidian Version

V1.5.3

Tasks Plugin Version

5.6.0

Checks

  • [X] I have tried it with all other plugins disabled and the error still occurs

Possible solution

No response

Fendi168 avatar Jan 11 '24 03:01 Fendi168

Thank you for the report.

For future reference, the sample vault is a help to show the problem, but please, we still need information about how to reproduce the problem in a developer vault.

From my experiments, I've written them up below.

Inline footnotes work (by luck) when the query is in the same file as the task

- [ ] This is a task ^[with a working inline footnote]

---

```tasks
path includes {{query.file.path}}
```

image

Tasks Query results do not show inline footnotes on tasks that are in different markdown files than the query

Steps to reproduce:

  1. Create a file Task.md
  2. Paste in this content
This file contains the task.

- [ ] This is a task ^[with a working inline footnote]
  1. View Task.md in both Live Preview and Reading modes. The inline footnote is shown.

image

  1. Create a file Query.md
  2. Paste in this content
This file contains the query which searches for the task in file  `Task`.

```tasks
path includes Task.md
```
  1. View Query.md in both Live Preview and Reading modes. The inline footnote is missing.

image

claremacrae avatar Jan 11 '24 06:01 claremacrae

I've renamed the ticket to describe the problem more precisely.

claremacrae avatar Jan 11 '24 06:01 claremacrae

I hope to support inline footnotes like Obsidian, so that the plugin "better footnote" can preview footnotes,thank you very much indeed

I don't exactly understand that. Are you proposing to create a Pull Request on better footnotes?

claremacrae avatar Jan 11 '24 06:01 claremacrae

I don't plan to work on this personally in the foreseeable future - I've a long list of other things I want to work on.

So I've added the 'help wanted` tag. The following info may help anyone who wishes to try working on this.

I've written a Contributing to Tasks guide, with much info about how to build, modify and tests the Tasks plugin.

It's worth searching for footnote in this vault to find all the references to that word in Code, Issues, Commits etc

image

claremacrae avatar Jan 11 '24 06:01 claremacrae

That search for Footnote showed in the repo that Tasks is behaving as documented:

https://publish.obsidian.md/tasks/Queries/About+Queries#Limitations+of+Queries

image

I've update the documentation to make this more discoverable:

5b25936903908418d5c360085c747ff173ac25d9

claremacrae avatar Jan 11 '24 06:01 claremacrae