Feature request: Folding sections of text

Hi tessus,

Folding on editor side

I had a look at the ace editor configuration and for me it would be very helpful to be able to configure the ace editor gutter (left side pane which could show line number, displays folding arrows).

Would it be possible to add the following options to Joplin configuration?

  • show line numbers (on the ace gutter)
  • show folding indicator arrows (on the ace gutter)

Folding on rendered markdown

For me the solution of ipra worked very well. In order to make the experience with this feature better, I could imagine two levels of integration of this feature:

  1. Simple integration: Joplin could have a format bar icon for inserting the code below:
    Snippet for default open
        <details markdown='1' open>
        <summary>Summary of folded text</summary>
        Extended information which is folded by default.
        </details>
    
    Snippet for default closed
        <details markdown='1'>
        <summary>Summary of folded text</summary>
        Extended information which is folded by default.
        </details>
    
  2. Full integration: The renderer could automatically push the html code for open / closed sections depending on the folding state of the ace editor. I’m not sure if Joplin can access the folding state from each ace editor sub part and if this injection of the folding html code is possible.

What do you think about it? In general the folding feature could be a big improvement for people who have well structured big notes.

3 Likes