Added to TW-Scripts On Tuesday, July 23, 2019 at 9:29:04 PM UTC+4:30, Mark S. wrote: > > First off, I don't think there is a really elegant solution unless you're > willing to do the two-step compromise. > > The two-step compromise would be to run a tiddler that creates tiddlers > that have the count for each tag. After that, it becomes easy to roll a > simple list filter report. > > Here's my solution that doesn't use the two-step compromise. It's a bit > inefficient (especially if you have hundreds of tags), but is > straightforward. > > \define expr() ^$(counts2)$$ > \define listTags(tags) > <$wikify name="counts" text=<<tagcount "$tags$">>> > <$list filter="[enlist<counts>nsort[]]" variable="counts2"> > <$list filter="[enlist<__tags__>sort[]]" variable="tag"> > <$list filter="[tag<tag>count[]regexp<expr>]"> > <<counts2>> -- <<tag>> <br/> > </$list> > </$list> > </$list> > </$wikify> > \end > \define tagcount(tags) > <$list filter="[enlist<__tags__>]" variable="tag"> > <$list filter="[tag<tag>count[]]"/> > </$list> > \end > > <<listTags "TableOfContents About Articles">> > > > > On Tuesday, July 23, 2019 at 7:47:51 AM UTC-7, Mat wrote: >> >> Yes, thanks, but does this answer my question about how to "sort tags by >> how many tiddlers that use that tag" ? I do accept that it might make the >> sorting faster but I don't know how to do the sorting. What is the actual >> filter or widgets that I type? >> >> Thank you for your input regardless if you have an answer to the actual >> question. >> >> <:-) >> >
-- 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/29c5db86-ea73-4785-864d-c1d01a65c5bf%40googlegroups.com.

