Skip to content

feat: outline view / collapsible sections for markdown plans #145

Open

Description

@blimmer

What's the problem?

A user asked whether PlanBridge has an outline view or a way to expand/collapse markdown sections. Today it doesn't, and long plans get hard to navigate: there's no table of contents, no jump-to-section affordance, and no way to fold sections that aren't currently being reviewed.

Proposed solution

Add an outline of the plan generated from the markdown headings, with:

  • A table-of-contents view that shows the document structure at a glance
  • Click-to-jump navigation from outline entries to the corresponding heading
  • Collapse/expand controls on individual sections in the main content view

A well-maintained third-party library is probably the right call here — markdown TOC generation and section folding are well-trodden ground and not worth rolling ourselves.

Additional context

This needs to play nicely with small viewports — see #131 (make PlanBridge usable on smaller devices). A persistent sidebar TOC won't translate directly to narrow widths; the design should consider a collapsible drawer, sticky-top section selector, or similar so the outline doesn't crowd out the content on mobile.

Activity

  1. added
    enhancement
    on May 15, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions