fold-whatever

This package provide the functionality to specify ranges to be folded with the help of regexes. The default values are are the regexes suitable to fold pandoc inlined footnotes and references.

olafklingt

332

0

0.2.7

MIT

GitHub

Fold-whatever

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.

Installation

apm install fold-whatever

Examples

The regular expressions can be set in the settings page of the package.

Fold everything between the brackets in one line. fold everything away:

/\<.+?\>/g

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:

/(\<)(.+?)(\>)/g

Match over multiple lines. Line-breaking spaces have to be matched:

/(\<)(.|\s)+?(\>)/g

Changelog

0.2.5 -

0.2.4 -

0.2.2 -

0.2.1 - First Release