Show hierarchical context (parent block/header) for each backlink (mention) [breadcrumbs in backlinks]

In backlinks section, when “Collapse results” is OFF, then show also the innermost block (or heading) under which the mention is contained.

Hierarchical context is often more relevant then the context immediately surrounding the mention, e.g. for list items in nested lists.

Use case

  • I could have [[taskXY]] mentioned in [[scheduled]] in chapter “”### 2020-12-24" which is included in chapters “# 2020” > “## 2020-12”
  • In backlinks for [[taskXY]] I would like to see not only “scheduled” but rather “scheduled > 2020-12-24” or “scheduled > … > 2020-12-24”.
  • the same should work when the structure is just nested list, without headers
	- 2020
		- ...
		- 2020-12
			- ...
			- 2020-12-24
				- ...
				- [[taskXY]]
			- ...

Other considerations

  • Showing full path of nested blocks (ancestors) might be needed in some use-cases (requested here.) But that would often require much more screen-space. It could be shown e.g. on hover or when “Show more context” is ON. In the example above it would be “scheduled > 2020 > 2020-12 > 2020-12-24”.
  • When the text is too long, then maybe hide the middle of text to maximize probability of showing the most relevant context. “Lorem ipsum … platea dictumst.” Showing only the beginnings “Lorem ipsum dolor sit …” might not be sufficient when a lot of blocks begins by the same text as a workaround of not being currently able to address nested structures within one file by means of “path”. (For example the schedule in the use-case above with many “2020…”.) But which part to trim from view, can be decided by checking uniqueness of the text within the tree of blocks in the file, for maximum informativeness of displayed content.

Existing implementations:

(for inspiration)

Related feature requests

4 Likes

A post was merged into an existing topic: Show heading title instead of note title in backlinks section