Support table of content [toc]

I rely on and appreciate this feature so significantly in my other apps! And I’m so eager to phase those apps out for Obsidian!

Oh My Gosh! Why can’t we have this yet? Taking soooo looong! :sob:
Kidding! :rofl: I can be patient :timer_clock:
Just don’t want to be for TOC

6 Likes

Like you, I am eagerly awaiting this plug-in because I also want to move my other markdown stuff into Obs.

2 Likes

I am used to work with longer markdown files. For that reason it is always good to have an overview of the documents’ structure.
A table of content is a neat feature to have for quickly navigate through a *.md file.

I made the following mockup as my proposal how this could look like in the UI.

It is the beloved collapsible “Outline” view I am used to have in VS Code and/or Typora.
And I would also :heart: to have this feature in Obsidian!

This view could be placed in the left/right sidemenu (I would prefer have it on the right).
So you could also hide it when you don’t need it.

In addition, the Outline view should also be usable in the “Slide” mode.
I did my first presentation for some colleagues in Obsidian a few days ago and they were very impressed. But I would be awesome to have a “TOC per slide” there.

:heart: you guys! Keep up the great work!

10 Likes

There is a plug-in request for this here.
@WhiteNoise

Oh…yes. but I think this is such an essential feature that it should be native and not as a Plug-In. Do you agree?

2 Likes

I had submitted the request as a feature, whereas @Dounm had requested it as a plug-in. @Silver then suggested to merge the feature request into the plug-in.

For me, like for you, it is an essential feature, but not everyone sees it that way, so I agreed to the proposed merger. At the end of the day it does not really matter, as long as there is a way to have it.

1 Like

Fair point! :wink:

1 Like

Just want to express my support for this feature. Also being able to toggle headings / bullet points in the Preview mode!

2 Likes

I know this late, but there’s been a way to do this that I was told about in the discord chat.

You simply add a # in the internal link, and then create your own TOC using that. Basically, like this:

TOC

    1. [[# First heading]]
    • 1.A [[# First subheading]]
    1. [[# Second heading]]

Then, as you’re writing, you have to create headings with the internal link, as follows:

Example

[[# First heading]]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pretium lorem ut nisi vestibulum, id sollicitudin neque euismod. Sed sed sem diam.

[[# First subheading]]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pretium lorem ut nisi vestibulum, id sollicitudin neque euismod. Sed sed sem diam.

[[# Second heading]]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pretium lorem ut nisi vestibulum, id sollicitudin neque euismod. Sed sed sem diam.

This will work to navigate inside a note, but admittedly it’s kind of tedious to set it up because when you’re writing the headings, you have to cancel the autocomplete and the brackets at the end shrink because when you put the # inside the brackets, Obsidian thinks you’re making another heading.

I don’t know who discovered this, but I’ve been using this solution and it works, but it could be improved!

1 Like

How do you do that?

I believe he does it manually for every heading.

It’s a solution for now yeah but like you said it’s tedious to set it up I did it for three notes with a fair share of headings and stopped making TOCs after that :sweat_smile:
Even with a script to generate that, you would probably have to run it everytime to update it. It works but a core Obsidian feature would be the best.

Also not regarding it’s utility but notes with TOCs created like that become important in the graph vie[[]] as all those links count to increase the node’s size. Not a problem if you don’t really check the graph but still something to consider.

1 Like

True. @bernardo_v flagged it up as an issue in the #insider-build channel https://discord.com/channels/686053708261228577/716028884885307432/731165066287644744

1 Like

Yes, as Meins mentioned, you manually type out the TOC. I just copy+paste the heading but it’s still tedious, it does increase the internal links, and I would love this as a built-in feature.

This was implemented.

1 Like

ToC in the sidepane has been implemented, which is great. What has not is the OP’s original request: to be able to type [toc] in the file (usually at the top) and get a ToC in the file.

Several feature requests were merged, with the focus on the ToC/outliner in the sidepane, so the OP’s original request took a back seat, it seems to me.

1 Like

I understand. I think it’s better to open a new feature request specifically for that.

1 Like

Done.

since the TOC/Outline has arrived with 0.8.1, can this post be closed?