Skip to content

fix: Table of Contents sidebar can be closed from its header - #22

Open
Coriou wants to merge 1 commit into
b451c:mainfrom
Coriou:ui/toc-header-collapse
Open

fix: Table of Contents sidebar can be closed from its header#22
Coriou wants to merge 1 commit into
b451c:mainfrom
Coriou:ui/toc-header-collapse

Conversation

@Coriou

@Coriou Coriou commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Same as Documents: once the ToC is open, there's no in-panel way to close it.

Shift-Cmd-T still toggles; this just adds a collapse control on the Contents header (same hide-sidebar icon as Documents). MarkdownView still owns the flag. No overlay capsule — ToC never had one.

The ToC could be opened from the menu/shortcut but had no in-panel
close. Header collapse clones the Documents control (sidebar.leading);
MarkdownView still owns the flag; ⇧⌘T still toggles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant