Table of Contents, Option to keep toggles expanded by default

Hello!

I’m working on writing documents, and for longer ones, the table of contents feature is helpful — however, the toggle-style navigation feels a bit inconvenient since it requires clicking to expand. The icon is also quite small.

Is there a way to keep the toggle permanently expanded?

HI @gntodtndls156. Are you referring to enabling the Table of Contents to stay open while working on the document, as @Oshyan had requested originally?

If so, I agree that a keyboard shortcut, and stickiness would both be helpful, plus searchability within the ToC to find the needed heading inside the ToC block.

1 Like

Notion has a TOC block, that’s something useful in a few contexts where you really want to make the TOC explicit.

When the TOC is applied:

2 Likes

Yes, exactly! I’d love for the ToC to stay persistently open. Right now, it’s collapsed by default every time you open a document — you have to manually click it just to see it. And once you click a heading to navigate, the panel closes on its own, so you’re stuck clicking the icon again and again just to keep referencing it. It breaks the flow when you’re working through a longer document. A “keep open” or pinned mode would make a huge difference!

1 Like

Yuri made a nice script in the past: Table of Contents (TOC) with anchor links

It’s obviously not as good as having it dynamic and pretty and default, but it might be useful!

2 Likes

Oh nice! Favoriting this!