[TW5] within-tiddler Table of Contents

107 views
Skip to first unread message

Edward Bassett

unread,
May 24, 2015, 6:05:34 PM5/24/15
to tiddl...@googlegroups.com
Hi, all.
I have been using TWC for several years now, and consider it a fine piece of software - kudos to Jeremy and all contributors.
I am now evaluating TW5, and it looks even more impressive, a feat of design.
Anyway, I have a few questions, which I will submit in separate threads in order to keep the discussion followable.

Question 2:
With TWC, I have been using http://devpad.tiddlyspot.com/#DcTableOfContentsPlugin
which provides a <<showtoc>> macro that shows the structure of headers of different levels *within* a single tiddler, nicely nested as appropriate, and clickable to jump to the desired section.
Is there a way to get equivalent functionality in TW5?

I tried copy/pasting the javascript content into a new tiddler, tagging it with $:/tags/Macros, and adding <<showtoc>> to another tiddler with a few headers, but that didn't do anything.
Suggestions?

Thanks,
-Edward

PMario

unread,
May 24, 2015, 7:07:20 PM5/24/15
to tiddl...@googlegroups.com
On Monday, May 25, 2015 at 12:05:34 AM UTC+2, Edward Bassett wrote:
Hi, all.

Hi Edward,
 
Question 2:
With TWC, I have been using http://devpad.tiddlyspot.com/#DcTableOfContentsPlugin
which provides a <<showtoc>> macro that shows the structure of headers of different levels *within* a single tiddler, nicely nested as appropriate, and clickable to jump to the desired section.
Is there a way to get equivalent functionality in TW5?

There's no plugin like this and there isn't a mechanism to jump to a heading.
TW considers tiddlers to be as short as possible. The goal is, to make single tiddlers more composeable. But this is on the todo list atm.

But you can have a look at the TOC macros. see: http://tiddlywiki.com/#Table-of-Contents%20Macros
There are a lot of new possibilities, that imo are worth exploring.

I tried copy/pasting the javascript content into a new tiddler, tagging it with $:/tags/Macros, and adding <<showtoc>> to another tiddler with a few headers, but that didn't do anything.
Suggestions?

TWclassic macros are not compatible with TW plugins or macros. .. As you found out, the mechanism is completely different. So this will never work, by design.

have fun!
mario


Reply all
Reply to author
Forward
0 new messages