Skip to content

Make sections foldable (collapsible headings) #1841

Description

@biva

Spoilers/foldable details sections are tracked separately in #3646

This ticket remains about making existing sections like headings foldable.

Initial report

Is your feature request related to a problem? Please describe.
For large pages, it is hard to have a vision of the structure, or to navigate within the page to find the right section / paragraph.

Describe the solution you'd like
It would be great to be able to collapse (fold) and open (unfold) sections, thanks to a small arrow on the left. Sections would be based on headers (H1, H2, ...), with subsections that would also be collapsible (foldable). In addition, a button on the top would fold/unfold all.

Describe alternatives you've considered
Having a menu on the top or on the right sidebar (also with collapsible sections)

Additional context

Activity

  1. rinurinu commented on Nov 11, 2021

    @rinurinu

    I would love either this or the headline overview from the other issue being implemented (or both).

  2. max-nextcloud commented on Oct 18, 2022

    @max-nextcloud
    Collaborator

    Thanks for proposing this.
    As the outline view has been added now and provides an alternative way to achieve the same goals i'll close this issue.

  3. mejo- commented on Oct 18, 2022

    @mejo-
    Member

    Well, to be honest we had this feature on our feature planning whiteboard recently and I agree that it's a useful one. So maybe let's keep this open? 😁

  4. reopened this on Oct 18, 2022
  5. moved this to 📄 To do (~10 entries) in 📝 Productivity teamon Jun 29, 2023
  6. luka-nextcloud commented on Jul 18, 2023

    @luka-nextcloud
    Contributor

    There are 2 things to be added:

    1. Collapsible sections #3646
    2. Add collapse function on headings (like https://support.microsoft.com/en-us/office/video-collapsible-headings-c7b03e92-a397-479d-b989-57393daf2d65)
    • steps:
      • Add toolbar item to fold/unfold all headings
      • Add fold/unfold functions on every headings
      • Handle copy/paste a folding heading
    • issues to consider:
      • Only support folding on H1 level or all heading levels?
      • press "Enter" at the end of folding heading should force new line to have same heading level?
  7. juliusknorr commented on Jul 18, 2023

    @juliusknorr
  8. mejo- commented on Jul 19, 2023

    @mejo-
  9. juliusknorr commented on Jul 19, 2023

    @juliusknorr
    Member

    You're right I totally missed #3646, let me actually extract the first part of this ticket and the discussion and move over to that one.

  10. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Feb 15, 2024
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

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions