Aidurber / obsidian-plugin-dynamic-toc

An Obsidian plugin for creating Tables of Contents that stay updated with your document
MIT License
269 stars 41 forks source link

Feature request: Inline links #42

Closed charlesroper closed 2 years ago

charlesroper commented 2 years ago

Love this!

Just wondering if it would be possible to add an inline option to the styles? This would render a navbar style ToC, something like this:

Item 1 | Item 2 | Item 3 | Item 4

Perhaps let people specify the delimiter, too?

Here is what the header of my daily notes look like. The to-do and notes links are generated by dynamic toc. You can see why I immediately wanted an inline ToC. :)

Many thanks!

2022-02-02_01

Aidurber commented 2 years ago

You would only be able to render a single level of links. So lets say you have a document with the following structure

## Level 2 Heading A
### Some subtitle

## Level 2 Heading B
### Another subtitle

You would only realistically be able to generate it from the level 2 headings, the topmost heading.

Aidurber commented 2 years ago

Released in 0.0.25

charlesroper commented 2 years ago

Haha, wow, I posted this when I went to bed (was thinking about tomorrow's daily) and when I get back to my computer next day, you've already pushed the change. ❤️

Have just tried it and it works perfectly. Thank you!