Make backlinks use multiple headings to distinguish between sections with the same name #1166
Replies: 1 comment 2 replies
-
Thanks @claremacrae for this idea.
It would be more useful for me to see something like (I really need this) : |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
In #1150 it was logged that if the same heading name is used twice in a file, backlinks for tasks in the second section jump to tasks in the first section.
This is because Tasks back-links use only the immediate heading name preceding the task.
Obsidian linking to headings
I learned recently that multiple headings can be used in links.
For example, consider this note:
Here are some possible ways to link to the X sections:
The Idea
Change tasks so that it tracks all the parent headings for each task (well, each section) - and then either include all headings in each backlink, or alternatively, detect if there are duplicate heading names in a file, and then include the extra headings.
It won't solve all cases, but it will help with some.
Update 2022-11-09
This is about the URL that backlinks jump to, to make sure that they navigate to the correct section more frequently.
See the related #1305 for changing the displayed text in backlinks in cases to help in cases where there are duplicate heading names in the file.
Beta Was this translation helpful? Give feedback.
All reactions