Skip to content

Notes: Show / toggle TOC #3291

Description

@tbsbdr

User Story

As a user I want a toc to get an overview of the content.

User Value

navigate large text contents

Acceptance Criteria

  • Add a sticky file-list-2-line icon, optionally with the label "Outlines" (tbd - unsure about that, might be annoying as overlay of the actual text-content)
  • Clicking the icon toggles the visibility of the TOC area, which displays the document headings.
    • All subheadings (h2h999) are indented by the same amount. For example, h2 and h3 have the same indentation.
    • Clicking a heading in the TOC scrolls to the corresponding section in the document.
  • The currently active heading is visually highlighted in the TOC.
    • The active heading is determined by the current viewport position or cursor position.
    • When scrolling, the highlighted heading updates dynamically to reflect the section currently in view.

visuals

CleanShot.2026-09-02.at.15.20.02-converted.mp4

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions