Use case or problem
I want to link/embed nested list which is indented part of another list.
Refering to nested sublists now works only by accident and with issues
Proposed solution
Edit 2021-06-22:
- This feature request might be also solved by more flexible/general / complementary request Support for Linking To/Embedding Ranges
It uses less concise syntax, due to need to specify both starting and ending ID. Due to this property it will also be more obvious what the scope of the reference is, even from raw source code. No need to locate link target and see if id follows empty line.
But the main reason for preferring syntax for ranges is potential to solve many other use-cases and feature requests. For example we can transclude any part of the nested list instead of whole sublist.
Then the syntax suggested here might be partially redundant.
Example list:
- 0
- 1
- 1.1
- 1.2
- 1.2.1 ^id1-2-1
- 1.2.2.1
- 1.2.2
^id1-2
- 2
- 2.1
- 2.2
- 2.2.1
- 2.2.2.1
- 2.2.2
^id2-0
^id2
^id0
Expected results:
-
^id0
is preceded by empty line.
![[#^id2-0]]
transcludes whole list and is already officially supported. -
^id1-2
is indented and is not preceded by empty line.
![[#^id1-2]]
should transclude preceding item on the same indentation level including enclosed sub-tree, like “one true brace style”:
- 1.2
- 1.2.1
- 1.2.2.1
- 1.2.2
-
^id1-2-1
is preceded by whitespace and is appended at the end of line with some content, not only the whitespace.
![[#^id1-2-1]]
transcludes- 1.2.1
and is already officially supported. -
^id2
is not preceded by empty line but immediately follows nested list.
![[#^id2]]
should transclude preceding item on the same indentation level including enclosed sub-tree, like “one true brace style”:
- 2
- 2.1
- 2.2
- 2.2.1
- 2.2.2.1
- 2.2.2
^id2-0
is indented and preceded by empty line.
![[#^id2-0]]
should transclude sub-list on the same indentation level similarly to current syntax for transcluding whole list:
- 2.1
- 2.2
- 2.2.1
- 2.2.2.1
- 2.2.2
Relevant discussions
- Ability to include sub blocks when referencing block ids
- How to make idented list items a block
- Issues with block-referencing nested lists
Related feature requests
keywords: attribute, encapsulated, embedding, fine-grained addressing, focus, ID, identifier, hierarchy, narrow down, nested, outliner, range, scope, sub-block, sub-list, zoom in