This tree macro is excellent!  Thank you!

I can use it to create a tree structure of my projects easily.  

Something that comes to mind... is there a way to specify in that macro not 
to show a specific tag?

That would be helpful when a project is complete and I don't need to have 
it clutter up my "active projects" tree any more.  

Maybe I could tag it "archive" or "complete" and have the tree macro not 
show those records?  I'm guessing a tag might be the most flexible way to 
make this kind of annotation.  It would be a chore, I imagine, to rename 
all the files with "/archive/" in the project path to make them seem to 
move into a different folder.



On Friday, February 28, 2020 at 3:46:56 PM UTC-5, Eric Shulman wrote:
>
> 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/0916700c-7b74-47be-ae79-15f719e85fbe%40googlegroups.com.

Reply via email to