Forum Archive

Any way to fold multiple?

njr

Liking the new folding features in Editorial 1.2, but I can't figure out any way to trigger folding of more than one headline at a time. There's an 'unfold all' button which appears but I don't see any corresponding 'fold all'.

Is there any way to do this without re-parsing the Markdown in a workflow?

Thanks.

TutorialDoctor

This workflow is quite simple to create. The basic ideas is:

  1. Create a new workflow
  2. Add a "Fold Lines Containing..." action
  3. Type "# " in the blank box with "Regular Expression" selected. (include the space after the hashtag)(no quotes)

This will fold all lines in the document that start with a # followed by a space.

Note: There might be cases where you have a hashtag in the document, in which case a slight modification to the regular expression would be needed.*