Folding all paragraphs


#1

I was looking at the folding capabilities and the associated documentation and it looks really nice. In my case, I want to apply it to simple text documents, not code. With “editor:fold-at-indent-level-1” I can fold all the indented text, which is quite helpful. However, in some cases I would like to fold all paragraphs to a single line and avoid the need to indent all but the first line.

Example:

First line.
Second line.
Third line.

should be folded to:

First line.

Right now I can achieve that goal, using “editor:fold-at-indent-level-1”, if I indent all the lines but the one I want to keep:

First line.
Second line.
Third line.

Is there an easy way to do it without the need of indentation? Something like “fold-paragraph”, which folds each text paragraph into just its first line?

Thank you for any idea.