On Saturday, August 29, 2020 at 10:31:20 AM UTC-7, amreus wrote:
>
> I would like to search all my tiddler's fields that match a regexp 
> /_plac$/ 
> <$list filter="[fields[]regexp[_plac$]]" variable="flds">
> {{{
>   [search:<<flds>>[query]]
> }}}
> </$list>
>

If I understand your goal correctly, you want to find all tiddlers that 
have a fieldname ending in "_plac" and then search those fields for a value 
that contains the text "query" and then show the names of those tiddlers

If that is the case, then you were very close.  The issue is that filter 
syntax doesn't permit use of variables in the suffix (e.g. the part after 
the colon in "search:suffix").

However, you can work around this by using a macro to substitute the 
variable value into the syntax, like this:
\define searchflds() {{{ [search:$(flds)$[query]] }}}

<$list filter="[fields[]regexp[_plac$]]" variable="flds">
<<searchflds>>
</$list>

-e


-- 
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/6489bf74-4bb9-4496-80d2-d2b9b41718b8o%40googlegroups.com.

Reply via email to