Update, I did another experiment and subfilter[] does work the way you were 
using it. I'm guessing Mark is right and it tries to create the filter 
before it actually runs it and sees there are no results.

On Sunday, April 18, 2021 at 2:36:33 PM UTC-5 Soren Bjornstad wrote:

> 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/435419d8-6c41-4f5c-b8f8-15b0f2aa210cn%40googlegroups.com.

Reply via email to