Currently, when using anyfold to fold away lists in a plain text files, any section headings in the file get confused as part of the list.
For e.g., given
# Heading 1
## Heading 1.1
- List level 1
- List level 2
- List level 3
- List level 3
- List level 2
- List level 3
- List level 3
## Heading 1.2
- List level 1
- List level 2
- List level 3
- List level 3
- List level 2
- List level 3
- List level 3
## Heading 2
## Heading 2.2
- List level 1
- List level 2
- List level 3
- List level 3
- List level 2
- List level 3
- List level 3
## Heading 2.2
- List level 1
- List level 2
- List level 3
- List level 3
- List level 2
- List level 3
- List level 3
we see:
Would it be possible to have vim-anyfold optionally recognize these headings and not fold them, so it looks like this:
This can be a command, e.g., "AnyFoldIncludeTextHeaders on" (which will fold headers, as it does now, by default), "AnyFoldIncludeTextHeaders off" (which will result in the second case).
Currently, when using anyfold to fold away lists in a plain text files, any section headings in the file get confused as part of the list.
For e.g., given
we see:
Would it be possible to have vim-anyfold optionally recognize these headings and not fold them, so it looks like this:
This can be a command, e.g., "AnyFoldIncludeTextHeaders on" (which will fold headers, as it does now, by default), "AnyFoldIncludeTextHeaders off" (which will result in the second case).