Type [toc] for a ToC

It would be useful to be able to put a table of contents with clickable links to the headers at the top of a document. This is esp. useful if the file is exported to a PDF.

The easy way to do that would be to be able to type [toc] and get a table of contents rendered in Preview.

46 Likes

I’d like to see this this as well, was chasing this ability earlier day. Found a partial solution, however, it’s still not quite perfect.

3 Likes

There is a Table of Content community plugin I just found that works well. Gives you a new shortcut to run that you can bind to a hotkey if you wish.

Only problem with it is that clicking the link opens a new pane centered on the section rather then just jumping the current pane down. I’m guessing this is a Obsidian API limitation, but not sure.

1 Like

@rob3r: thanks for pointing me to this plug-in. It works well, and the problem you mention in your 2nd paragraph does not occur for me: click on a jumps to the right header in the current pane.

The only issue I have is that the text “Table of Contents” is not inserted above the ToC. I have filed an issue report of the dev’s Github page.

2 Likes

This is quite important when exporting files, either in PDF or DOCX format. Quite valuable!

1 Like

It would be really useful functionality. Just as is the outline on the right pane to be imported into the markdown file.

@yisoh62178 : there is a Table of Contents plug-in the Community collection.

1 Like

Great, it could be added to core functionality then I assume.
Although it has a limitation: It doesn’t automatically update the generated ToC.

@yisoh62178 : I don’t see why it should. In any case, that’s for the devs to decide.

To me the clickable ToC in PDF would be the value here, and with the plugin in does not work like that :frowning:

@3dward that is what I stated in my OP. In fact, what would really, really useful in the PDF is a clickable ToC AND have those little return arrows to return from the header to the ToC.

1 Like

I miss this feature so much, especially to be able to copy paste some notes on platform like Github who supports ToC for quick browsing.