mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-18 19:59:25 +00:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
![]() |
title: $:/core/ui/MoreSideBar/Explore
|
||
|
tags: $:/tags/MoreSideBar
|
||
|
caption: Explore
|
||
|
|
||
|
\define treenode-inner(prefix)
|
||
|
<$reveal type="nomatch" text="" default="""$(chunk)$""">
|
||
|
<li>
|
||
|
<$list filter="""[[$prefix$$(chunk)$]is[shadow]] [[$prefix$$(chunk)$]is[tiddler]] +[limit[1]]""" emptyMessage="""<$text text="$prefix$$(chunk)$"/>""">
|
||
|
<$link>
|
||
|
<$view field="title"/>
|
||
|
</$link>
|
||
|
</$list>
|
||
|
<$list filter="""[all[shadows+tiddlers]prefix[$prefix$$(chunk)$]] -[[$prefix$$(chunk)$]] +[limit[1]]""">
|
||
|
(<$count filter="""[all[shadows+tiddlers]prefix[$prefix$$(chunk)$]] -[[$prefix$$(chunk)$]]"""/>)
|
||
|
<$reveal type="nomatch" state="""$:/state/tree/$prefix$$(chunk)$""" text="show">
|
||
|
<$button set="""$:/state/tree/$prefix$$(chunk)$""" setTo="show" class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button>
|
||
|
</$reveal>
|
||
|
<$reveal type="match" state="""$:/state/tree/$prefix$$(chunk)$""" text="show">
|
||
|
<$button set="""$:/state/tree/$prefix$$(chunk)$""" setTo="hide" class="tc-btn-invisible">{{$:/core/images/chevron-down}}</$button>
|
||
|
<$macrocall $name="treenode" prefix="""$prefix$$(chunk)$"""/>
|
||
|
</$reveal>
|
||
|
</$list>
|
||
|
</li>
|
||
|
</$reveal>
|
||
|
\end
|
||
|
|
||
|
\define treenode(prefix)
|
||
|
<ol>
|
||
|
<$list filter="[all[shadows+tiddlers]removeprefix[$prefix$]splitbefore[/]sort[title]]" variable="chunk">
|
||
|
<<treenode-inner """$prefix$""">>
|
||
|
</$list>
|
||
|
</ol>
|
||
|
\end
|
||
|
|
||
|
<<treenode "$:/">>
|
||
|
|