I've found a Chrome extension "Smart TOC" can do this trick without the need of an "in tiddler TOC" mechanism.
Extension URL: https://chrome.google.com/webstore/detail/smart-toc/lifgeihcfpkmmlfjbailfpfhbahhibba But be awared that it's not prefect when you open multiple tiddler, or your tiddler has an incomplete heading hierarchy. On Thursday, November 20, 2014 at 9:55:05 PM UTC+8, Stephen Kimmel wrote: > > I use Tiddlywiki at work. I work with a lot of documents of different > types. Some are legal documents and affidavits. Others are contracts and > specifications. Some are well structured while others seem to ramble > pointlessly. Some are lengthy while others are very short. I need to be > able to figure out quickly which document contains a particular > requirement. I've found that Tiddlywiki with its search function, and > especially with Danielo's context search plugin, is almost perfect for my > task.Everyone I've shown my wikis to has been envious. > > One key criteria in my line of work: for existing documents, I must have > every word and character correct and in the right order. Most of these > documents must not be edited. For example, I can't change any part of an > existing contract. I can highlight portions of it but I must not change any > word or word order or punctuation mark. Using a clause from one document in > another is rare enough that simply copying is the obvious answer. > > Consider the two alternate ways of doing things; the preferred Tiddlywiki > method of breaking my documents into small pieces and my current method, > the document dump. > > I don't so much create tiddlers as dump documents into them. Dumping a > document into a single tiddler is fast and easy. Open the word document. > Copy the entire thing. Open the wiki. Create a new Tiddler. Paste the > document into the tiddler. Name the tiddler to match the source document > name. And I'm done. If I care to preserve the formatting, I add three quote > marks at the beginning. Total time expended, perhaps a minute. If I really > want to make it pretty, I can spend 10-15 minutes adding exclamation marks > to mark headers or use Danielo's Keysnippet routine to convert some jumbles > into neat tables. > > This creates what can be a very large tiddler. The search function works > as expected and rapidly identifies which document contains which phrase. It > has every character and every word in exactly the right order. It > accomplishes what I need to accomplish with a minimal amount of effort. > > And the disadvantage? So far I haven't found one. If Tiddlywiki processes > the tiddler more slowly, I haven't noticed. > > By comparison, the Tiddlywiki preferred choice, lots of little tiddlers, > is a good deal of work. > > I've tried copying and pasting individual segments from the word document > into individual tiddlers. Each smaller tiddler takes about the same amount > of time to set up as my much larger single tiddler but after that I'm still > not done. I still have to rebuild the original document from those > individual tiddlers and I have to verify that I got all the material > correctly. When that is done, I have to create a field and tagging system > so that each smaller tiddler will reflect its source document and sort > correctly so the table of contents will be right. > > If I saw any real advantage to using a lot of little tiddlers to > accomplish the same thing that can be done with one large tiddler, I might > go ahead and spend the extra time. The last couple times I went through > this exercise, it took me hours rather than minutes. And what did I get for > my effort? As close as I can tell, nothing but older. > > One thing that would make my life easier would be a table of contents that > worked inside a single tiddler that was based on headers or some invisible > marker. I know this has been requested more than once and now, perhaps, you > can understand why I want one. A simple list of headers would be helpful. I > could then use the browser's Find command to jump to the appropriate > section. > -- 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/8cbe9d82-2360-4e03-9749-17b27cd91d1b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

