obsidian-tasks
obsidian-tasks copied to clipboard
Tasks Query results do not show inline footnotes on tasks that are in different markdown files than the query
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
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
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}}
```
Tasks Query results do not show inline footnotes on tasks that are in different markdown files than the query
Steps to reproduce:
- Create a file
Task.md
- Paste in this content
This file contains the task.
- [ ] This is a task ^[with a working inline footnote]
- View
Task.md
in both Live Preview and Reading modes. The inline footnote is shown.
- Create a file
Query.md
- Paste in this content
This file contains the query which searches for the task in file `Task`.
```tasks
path includes Task.md
```
-
View
Query.md
in both Live Preview and Reading modes. The inline footnote is missing.
I've renamed the ticket to describe the problem more precisely.
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?
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
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
I've update the documentation to make this more discoverable:
5b25936903908418d5c360085c747ff173ac25d9