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

Make sections foldable (collapsible headings) #1841

Open
biva opened this issue Sep 1, 2021 · 7 comments
Open

Make sections foldable (collapsible headings) #1841

biva opened this issue Sep 1, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@biva
Copy link

biva commented Sep 1, 2021

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

@rinurinu
Copy link

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

@max-nextcloud
Copy link
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.

@mejo-
Copy link
Member

mejo- commented Oct 18, 2022

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? 😁

@luka-nextcloud
Copy link
Contributor

luka-nextcloud commented Jul 18, 2023

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?

@juliushaertl

This comment was marked as off-topic.

@mejo-

This comment was marked as off-topic.

@juliushaertl
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

6 participants