Thanks again, Mark. That seems to do the trick with a small amount of testing that I've done. I'll give it a more thorough going through over the next several days.
Damon On Thursday, June 27, 2019 at 4:22:14 PM UTC-5, Mark S. wrote: > > You can try this change to tree-node2, which may work as long AS you don't > have any entries ending in "XXX" or "YYY". (these are end-of-title markers, > which could be made more obscure if necessary). > > \define tree-node2(prefix,separator: "/") > <ol> > <$list > filter="[all[shadows+tiddlers]each[description]get[description]removeprefix<__prefix__>splitbefore<__separator__>!suffix<__separator__>addsuffix[XXX]] > > [all[shadows+tiddlers]each[description]get[description]removeprefix<__prefix__>splitbefore<__separator__>suffix<__separator__>addsuffix[YYY]] > > +[sort[]]" > variable="chunk"> > <$list filter="[<chunk>removesuffix[XXX]]" variable="chunk2"> > <$macrocall $name="leaf-node2" prefix=<<__prefix__>> chunk=<<chunk2>> > separator=<<__separator__>>/> > </$list> > <$list filter="[<chunk>removesuffix[YYY]]" variable="chunk2"> > <$macrocall $name="branch-node2" prefix=<<__prefix__>> chunk=<<chunk2>> > separator=<<__separator__>>/> > </$list> > </$list> > </ol> > \end > > On Thursday, June 27, 2019 at 12:16:35 PM UTC-7, Damon Pritchett wrote: >> >> 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/71fa7ea1-5cf1-4218-a405-b3707e735b48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.