On Monday, July 8, 2019 at 12:56:10 PM UTC+2, Jeremy Ruston wrote: > > There's an unexpected subtlety here: even with quite a small number of > tags, it is possible for a fully expanded table of contents to have many > millions of entries. >
That's also true for tiddlywiki.com documentation. That's why I think using tags to create a TOC is not the best way to do it. ... But it's definitely the easiest. > For example, AMBIT's main wiki (https://manuals.annafreud.org/ambit) has > just over 1,000 tags but they are so interconnected that a fully expanded > table of contents had 1.4 million entries when I was doing some experiments > a few months ago. > That's probably a "worst case" and a "nightmare" scenario. Tags are used to define a "group" relationship between topics (titles). A TOC table of contents is used to bring a hierarchical structure to a highly interconnected system. Both goals are valid, but the are fundamentally different! So IMO you can't have both, if you use tags only. The problem is easy to solve. Use an eg: parent-field to create a 1 to 1 relation from a "child" tiddler to the level above, the parent. I'm using this mechanism for the tocP plugin <https://wikilabs.github.io/editions/tocP/#test-tocP:test-tocP%20test-tocP-asdf>. It allows you to create different hierarchical "tracks" using different "parent"-field names. The advantage is, that *by design no duplicates* can happen. > So, I tend to think an expand-all button should not be part of the core. > That's why I wrote: "at a plugin level"! > Generally, I'm not in favour of adding more and more functionality to the > core macros because it compromises one of their primary purposes: to act as > simple examples for people to use as a starting point for their own macros. > That's OK, as long as we prepare the core TOC, to be extendable by plugins. -mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/898743bd-97be-4ece-b5cf-a6fa3e249e21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

