Feature Request : Folding Headers

Hi,
It will be nice if we can have folding section (by heading for example).
In general, we put the outlines, then we start expanding each one, without being distracted by the other texts in other headings.

Here an example of what I mean (Screenshot):

2 Likes

Here’s a reference to the html code for this How To Create a Collapsible
I use it in my formatted note records

Sample code

<details>
  <summary>
    What is the meaning of life?
    <span class="icon">👇</span>
  </summary>
  <p>
    42
  </p>
</details>
1 Like

I wonder if this could also be done in a Markdown document…

1 Like

This is not achieving the goal :pensive:

Yes, we can :

<details>
<summary> to expand
\TEXT
</details>

But here few comments :

  1. The summary (clickable) can’t be a title with ###
  2. The goal is to dump our thoughts in a formatted and readable way, without thinking about coding …
    But the most important is the next one :
    3) The <details> result is shown only in the Preview mode, not in the edit where we spend time writing. Adding <details> section will do the opposite : add confusion on text. When writing, we are spending 99% of the time in edit mode not in preview

It will be very nice to add an option in DT preferences to activate it.
Like bellow :

1 Like

No promises but the request is noted.

2 Likes

Thank you my friend Bluefrog :+1::blush::pray:

1 Like