On Friday, February 28, 2020 at 11:13:29 AM UTC-8, David wrote:
>
> But one thing about the above info about Explore... When I look at that
> folder tree, it only shows me pages starting with "$:/" and does not
> include the "normal" pages/tiddlers that I created.
>
The Explore tab ($:/core/ui/MoreSideBar/Explorer) is actually generated
using:
<<tree "$:/">>
and the <<tree>> macro ($:/core/macros/tree) definition has default
parameters:
\define tree(prefix: "$:/",separator: "/")
Unfortunately, this means that although you can invoke the <<tree>> macro
with a different value for the prefix (and separator), e.g.,
<<tree "something">>
there isn't a way to specify a blank prefix (e.g., <<tree "">>), since any
blank parameter value will result in the default parameter value ("$:/")
being used.
To get the results you want, you will need to make a small change in
$:/core/macros/tree by removing the default parameter value, like this:
\define tree(prefix: "",separator: "/")
This won't affect the sidebar More>Explorer output, since that explicitly
uses <<tree "$:/">>, as noted above. With this single change, you can then
write:
<<tree>>
to get a complete tree view of ALL tiddlers in the document.
-e
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e2828920-bf6e-4e0b-8742-8f84ac8057ba%40googlegroups.com.