P.S. My code from above does that in some way but lacks the "expandable" 
feature for root nodes. Plus it skips tiddlers that are used as tags but 
have a tags themselves.

On Tuesday, January 8, 2019 at 7:15:23 PM UTC+1, Mark S. wrote:
>
> If Foo, Bar, and Bag are all tagged as "root", then wouldn't tag="root" 
> work?
>
> Good luck
> -- Mark
>
> On Tuesday, January 8, 2019 at 9:46:26 AM UTC-8, Tristan wrote:
>>
>> 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/cc05a5d0-ccd4-4c05-b4e3-a273f37cc7bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to