obsidian-tasks
obsidian-tasks copied to clipboard
Remove any hyperlinks from the heading component of backlinks
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
Task backlinks should "simplify" links in headings to just their display text.
Current behaviour
Currently, backlinks to headings that include a link include the full link. Applies to markdown links and wikilinks both. This can make the backlinks quite hard to read.
Steps to reproduce
- Create a task under a heading with a link (markdown or wikilink)
- Display the task
I have made an example vault for this, let me know if I should link to it.
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [X] macOS
- [ ] Windows
Obsidian Version
1.4.16
Tasks Plugin Version
5.0.0
Checks
- [X] I have tried it with all other plugins disabled and the error still occurs
Possible solution
No response
Hi, your sample vault would be greatly appreciated please.
ideally by making a .zip and attaching it in a comment in this ticket.
Thanks in advance.
Here you go sample.zip
Hi @ybnd, thanks very much, it's a lot clearer now that I've been able to experiment with it.
So I understand the problem.
Prior backlinks requests
I've given this the backlinks label and then looked at all backlinks requests:
- Discussions - all open
- Discussions - ideas open (that is, earlier feature requests)
- Issues - open
I do think that this is a new description of the problem.
The request
Now I need to understand what the request actually is.
These are the two ways you have phrased it:
- Task backlinks show full links from heading text
- Task backlinks should "simplify" links in headings to just their display text.
But I think that the screenshot under 'Expected behaviour' makes it really clear.
If I understand it correctly, I think the request is effectively:
- Since the entire backlink text is rendered a link ...
- ... there is no value in the heading component of the backlink displaying the destinations of any other kinds of links that are in the heading ...
- ... as URLS, wikilinks or markdown links are useless clutter that make the backlink harder to read.
Is that broadly what you mean?
Exactly!
Great, thanks - I've updated the title to (try to) clarify...
Thanks for the suggestion.