Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for Markdown-style (and/or other style) of Headers #42

Open
jeetsukumaran opened this issue Sep 26, 2021 · 0 comments
Open

Allow for Markdown-style (and/or other style) of Headers #42

jeetsukumaran opened this issue Sep 26, 2021 · 0 comments

Comments

@jeetsukumaran
Copy link

jeetsukumaran commented Sep 26, 2021

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:

Screenshot from 2021-09-25 22-34-40

Would it be possible to have vim-anyfold optionally recognize these headings and not fold them, so it looks like this:

Screenshot from 2021-09-25 22-37-19

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant