diff --git a/core/ui/MoreSideBar/System-Explorer.tid b/core/ui/MoreSideBar/System-Explorer.tid new file mode 100644 index 000000000..d2dbfcad7 --- /dev/null +++ b/core/ui/MoreSideBar/System-Explorer.tid @@ -0,0 +1,60 @@ +title: $:/core/ui/MoreSideBar/System-Explorer +tags: $:/tags/MoreSideBar +caption: {{$:/language/SideBar/System-Explorer/Caption}} + +\define cleanChunk() +<$list filter="[[$(chunk)$]] +[removesuffix[/]]" variable="cleanChunk"> +<$text text=<>/> + +\end + +\define leafnode(prefix) +
  • +<$list filter="""[[$prefix$$(chunk)$]is[shadow]] [[$prefix$$(chunk)$]is[tiddler]] +[removeprefix[$prefix$]] +[limit[1]]""" +emptyMessage="""<$text text="$prefix$$(chunk)$"/>"""> + <$link to="""$prefix$$(chunk)$"""> +<$view field="title"/> + + +
  • +\end + +\define branchnode(prefix) +<$reveal type="nomatch" text="" default="""$(chunk)$"""> +
  • +<$list filter="""[all[shadows+tiddlers]prefix[$prefix$$(chunk)$]] -[[$prefix$$(chunk)$]] +[limit[1]]"""> +<$reveal type="nomatch" state="""$:/state/tree/$prefix$$(chunk)$""" text="show"> +<$button set="""$:/state/tree/$prefix$$(chunk)$""" setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}} + +<$reveal type="match" state="""$:/state/tree/$prefix$$(chunk)$""" text="show"> +<$button set="""$:/state/tree/$prefix$$(chunk)$""" setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}} + + + +<> + +<$list filter="""[all[shadows+tiddlers]prefix[$prefix$$(chunk)$]] -[[$prefix$$(chunk)$]] +[limit[1]]""">(<$count filter="""[all[shadows+tiddlers]prefix[$prefix$$(chunk)$]] -[[$prefix$$(chunk)$]]"""/>) +<$reveal type="match" state="""$:/state/tree/$prefix$$(chunk)$""" text="show"> +<$macrocall $name="tree" prefix="""$prefix$$(chunk)$"""/> + + + +
  • + +\end + +\define tree(prefix) +
      +<$list filter="[all[shadows+tiddlers]removeprefix[$prefix$]splitbefore[/]sort[title]] +[!suffix[/]]" variable="chunk"> +<> + + +<$list filter="[all[shadows+tiddlers]removeprefix[$prefix$]splitbefore[/]sort[title]] +[suffix[/]]" variable="chunk"> +<> + +
    +\end + +
    +<> +