Skip to content

Support for folding? #196

Closed
Closed

Description

@danvk

In IDEs, blocks are often associated with folding. For example in VS Code:

Unfolded:
image

Folded:
image

Is there support for folding in BlockNote? Has anyone built this feature on top of BlockNote? Would it be straightforward to add?

Activity

  1. YousefED commented on May 18, 2023

    @YousefED
    Collaborator

    Hi Dan! Good suggestion. I think there would be several ways to add this:

    Fold nested elements
    I think this makes most sense, add an option to fold nested (indented) element above a parent element

    Create "foldable" elements
    This would be similar to the "Toggle node" in Notion for example; create a separate node type that's foldable

    Make headings foldable
    Automatically make contents below headings foldable (i.e.: treat content between headings as "sections"


    Let me know if you see other options. What way of folding would you be most interested in?

  2. KNWR commented on Nov 23, 2023

    @KNWR

    +1'ing that this would be great to have. I agree that option 1 - folded nested elements - makes the most sense.

  3. Inaztm commented on Jan 12, 2024

    @Inaztm

    Create "foldable" elements This would be similar to the "Toggle node" in Notion for example; create a separate node type that's foldable

    This variant best for my case, need feature "nested blocks"

  4. NicolasRitouet commented on May 20, 2025

    @NicolasRitouet

    FYI: to avoid duplicate efforts: the ANCT, via the Incubateur des Territoires, has sponsored the development of this feature. It is being implemented by @YousefED and is expected to be delivered around June.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions