Skip to content

Feature request: closeFoldsExceptKinds #302

@Tom94

Description

@Tom94

Feature description

Absolutely love this plugin. Thank you so much for your work!

The API already has openFoldsExceptKinds -- could we also get closeFoldsExceptKinds?

Describe the solution you'd like

My use-case is that I'd like zM to keep comments/documentation intact (not close comments and regions) while closing everything else (functions, class definitions, etc.).

If I could bind zM to call

require("ufo").closeFoldsExceptKinds({"comment", "region"})

that would be perfect.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions