Fold the entire list when no child items exist

Kind of like what an IDE does to the comments.

image

If it is feasible in Obsidian, hope to have a folder marker attached to the first item to toggle folding the following items.

As a workaround in at least some cases, you could add a heading before the list and fold that.

Thanks, but it is not what I expected.
A typical use case would be like this:


text_1 (Line 1 - Line 20)

  • notes for the above text_1 (organized as list items, Line 21 - Line 40)

text_2 (Line 42 - Line 61)

  • notes for the above text_2 (organized as list items, Line 62 - Line 81)

In this example, I prefer to just fold the list of long notes, instead of inserting a heading between text and its corresponding notes and folding the heading.

You could put the list into a callout:

text_1 (Line 1 - Line 20)
…

> [!info]+ 
> - notes for the above text_1 (organized as list items, Line 21 - Line 40)
> - notes for the above text_1 (organized as list items, Line 21 - Line 40)
> - notes for the above text_1 (organized as list items, Line 21 - Line 40)
…


text_2 (Line 42 - Line 61)
…

> [!info]+ 
> - notes for the above text_2 (organized as list items, Line 62 - Line 81)
> - notes for the above text_2 (organized as list items, Line 62 - Line 81)
1 Like

Thanks for your reply. It works, however, list items in a callout (like ‘a’, ‘aa’, …, ‘aaaaaaaaaa’ below) cannot be folded anymore, and I hope not to insert ten callouts as a workaround for just folding those items.