Your nested filter loops should work. The outer part will pick out all the 
candidates. The inner will compare the full list against the candidate and 
print if there's a match. There might be a double output if something has 
both a suffix berry and is tagged tasty.

You could do it as one massive filter by listing the full list against 
suffix berry and then again, in a second run, against the tasty tag. In 
that case, the duplicates should collapse.

Or maybe I'm not understanding the problem?

On Monday, July 8, 2019 at 2:20:49 PM UTC-7, Mat wrote:
>
> *Beyond my control*, the user defines a filter like 
>
> [suffix[berry]] [tag[tasty]]  (could be many more, and more complex)
>
> This is to be applied to my list of fruits'n berries, where some of them 
> are tagged "tasty".
>
> How? Here's the problem shown:
>
> {{{ tastyapple blueberry rottenbanana lingonberry <inserted-userfilter>  
> }}}
>
> The output *should* be: tastyapple blueberry lingonberry
>
> It no worky because 
> 1) the user filter consists of multiple parts so even if I put a "+" 
> before the user filter it wouldn't distribute to the [tag[tasty]] part
> 2) the original fruit list should be, again, filtered *in full* by that 
> second filter. 
>
> It seems the user filter must itself be treated like a list of elements... 
> but is that even possible?
>
> <$list filter="[suffix[berry]] [tag[tasty]]" variable=part>
> <$list filter="tastyapple blueberry rottenbanana lingonberry +[<part>]">
>
> <$list>
> <$list>
>
> The problem here is of course that the "[suffix[berry]] etc" will be 
> evaluated and not treated as merely a string.
>
> Can I make it be treated like a string? ...but more importantly, should I? 
> The actual problem is the former, not the latter.
>
> Thank you!
>
> <:-)
>

-- 
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/69811f1d-a17a-4673-a8f2-a1305aa5c090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to