I've never tried to do a recursive* filter*, so I don't know what's
technically possible (though I've never seen someone try to use multiple
filter runs in *subfilter* and am a bit suspicious that the second run is
doing a tagging[] on everything in your wiki). But recursive macros are
easy and functional, and I suspect they'll work for your use case. Here's
one version that does an outline of the TOC on tiddlywiki.com, using the
current tiddler to easily pass the state through to the next level:
\define recurse()
<$list filter="[all[current]tagging[]]">
<li><<currentTiddler>><ul>
<<recurse>></ul></li>
</$list>
\end
<$tiddler tiddler="TableOfContents">
<ul>
<<recurse>>
</ul>
</$tiddler>
On Sunday, April 18, 2021 at 2:01:51 PM UTC-5 Yaisog Bonegnasher wrote:
> Hi,
> I recently tried to create a recursive subfilter to find all tiddlers
> below a certain tag, no matter how many levels deep (similar to the *kin*
> filter, which is too slow for my large wiki). Unfortunately, I was greeted
> with a red-message-box-of-death informing me of too much recursion.
> However, there should only be a couple of levels.
> Are recursive filters at all possible or am I doing something wrong?
> For a quick example, try this in a new tiddler on tiddlywiki.com:
> \define subfilter-test() [tagging[]] [tagging[]subfilter<subfilter-test>]
>
> <$set name="test" filter="[[TableOfContents]subfilter<subfilter-test>]">
> <$list filter="=[enlist<test>]" template="$:/core/ui/ListItemTemplate" />
> </$set>
> Any enlightment is greatly appreciated.
> Best regards
> Yaisog
>
--
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/0a8b1534-1ee3-43dd-a8d5-56dc9fee230cn%40googlegroups.com.