Hey Mark, et. al., I've been using the modified tree macro for quite a while now and am very happy with it. I would like to make another modification to it, but I haven't been able to figure out how to do it yet so am reaching out for hlep. What I would like to do is to have the folders sorted alphabetically with the non-folders (that is, not have the folders all grouped together at the end). Is this even possible without a total rewrite?
Thanks, Damon On Sunday, June 16, 2019 at 9:43:23 PM UTC-5, Damon Pritchett wrote: > > Thanks Mark! That did the trick. I really appreciate the help. I think I > understand what you did and why as well. I just wish I could think of those > kinds of things on my own. Time and experience will change that I'm sure. > > Damon > > On Sunday, June 16, 2019 at 12:13:58 PM UTC-5, Mark S. wrote: >> >> Ok a coupe tweaks to leaf-node2 may do it (until you find another bug) : >> >> \define leaf-node2(prefix,chunk) >> <li> >> <$list filter="[<__prefix__>addsuffix<__chunk__>]" variable="full-title"> >> <$list filter="[description<full-title>is[shadow]] >> [description<full-title>is[tiddler]]" variable="tiddler"> >> <$list filter="[<full-title>removeprefix<__prefix__>]" variable="chunk"> >> <span>{{$:/core/images/file}}</span> <$macrocall $name="leaf-link2" >> full-title=<<tiddler>> chunk=<<chunk>>/> >> </$list> >> </$list> >> </$list> >> </li> >> \end >> >> On Sunday, June 16, 2019 at 7:59:33 AM UTC-7, Damon Pritchett wrote: >>> >>> Hey Mark, >>> >>> Yeah, I didn't explain very well. Hopefully, the following will help. >>> >>> So I have a tiddler titled "Atchison Daily Champion, Sunday, March 8, >>> 1868." I put the following in the description field >>> "Newspapers-Kansas-Atchison-Daily Champion-1868-03-08." The output of the >>> macro looked just as expected (see screenshot), except that the link on the >>> 08 node doesn't link to my tiddler. It wants to link to a tiddler named the >>> same as the description field. This is not what I was hoping for. I want to >>> use the description field to generate the tree, but retain the shorter, >>> more readable tiddler title. >>> >>> [image: tree.png] >>> >>> >>> On Friday, June 14, 2019 at 10:54:37 PM UTC-5, Mark S. wrote: >>>> >>>> >>>> >>>> On Friday, June 14, 2019 at 4:56:44 PM UTC-7, Damon Pritchett wrote: >>>>> >>>>> After playing around with this new macro further, I've found that it >>>>> only works as long as the description matches the tiddler title exactly. >>>>> If >>>>> not, then there is an entry in the tree list to a tiddler that doesn't >>>>> exist. What tweak could I make that would fix this? >>>>> >>>>> >>>>> >>>> I don't know what you mean. Nothing should depend on the title. Perhaps >>>> you could attach some sample tiddlers so we could see what is happening. >>>> >>>> Thanks! >>>> >>> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/b5f61ced-ab82-46ea-9371-13ab8b3fd435%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.