Fold-whatever is a package for the Atom code editor. It allows the user to specify ranges to be folded with the help of regular expressions. The default values are are the regexes suitable to fold Pandoc inlined footnotes and references.
Fold-whatever is my first atom package. I am grateful for any comments and suggestions.
apm install fold-whatever
The regular expressions can be set in the settings page of the package.
Fold everything between the brackets in one line. fold everything away:
Keep the brackets visible by using 3 matching groups. This regex will fold the range from the end of the first group to the beginning of the last group:
Match over multiple lines. Line-breaking spaces have to be matched:
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.