Skip to content

Generate table of contents for (long?) notes #1608

@mat-m

Description

@mat-m

Is your feature request related to a problem? Please describe.
When I have long notes, I can't see all chapters, and can't get an overview of it.

Describe the solution you'd like
If the note is longer than the viewport (or maybe 2 times the viewport, if you can compute it), provide a menu-button that will drop-down as a table of contents.
It could be on left or right, I let UX engineers do their work :)

If detecting viewport length is too much, that could be a setting : Show Table of Contents in Notes Yes/No. My guess is that people who need it for long notes will not mind seeing them also in short notes.

Describe alternatives you've considered
I could make notes shorter, but that would mean multiply notes, and managing data density at notes level. With only categories, it's a bit of a pain, and for some topics, it does not make sense to split.

Additional context

Example extracted from Wikipedia:
Closed:
Image

Expanded:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for complete new featuresneeds discussionNeed to clarify if and how we should implement this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions