Hey guys,

I was digging around lately and stumbled upon Trilium 
<https://github.com/zadam/trilium>. Upon further reading about this I got 
pretty excited about its usecase and how similar many aspects are to TW. 
The author has done some nice writeup about his intentions and workflow in 
Trilium's wiki over on Github. Investing into some points I was quite 
surprised when I figured that its "cloning" mechanism is easily mimiced by 
TW using tags and having TW generate the Tree View on the fly. However I 
have some hickups so far as to how I generate the TOC. I tried using a list 
of all tags but that resulted in TW "shitting" every tiddler on screen 
without any hint as to what tag it was. After adding <<currentTiddler>> 
this got somewhat better however I would like for TW to just show all tags 
(to be precise: only tiddlers that are used as tags) as top entries and any 
tiddler tagged by them when I drill down, similar to how Trilium does it.

<div class="tc-table-of-contents">
    <<currentTiddler>>
    <$list filter="[!tag[]]">
        <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> 
/>
    </$list>
</div>

Result should be something like this:

> Foo
    > Bar
        > Baz # shows up in multiple hierarchies since tagged: Foo Bar Bag
    > Bag
        > Baz
> Bar
    > Foo
        > Baz
    > Bag
        > Baz
> Bag
    > Foo
        > Baz
    > Bar
        > Baz

Thanks for any help, cheers.
Tristan

-- 
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/1f67f50f-5b25-443b-945d-7143577a5179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to