Saq... thank you!
https://www.youtube.com/watch?v=218iXiKhKlg
<:-)
On Saturday, April 17, 2021 at 10:35:04 AM UTC+2 Saq Imtiaz wrote:
> Try this:
>
> {{{ [has[path]] :filter[get[path]suffix<__chunk__>] }}}
>
> On Saturday, April 17, 2021 at 10:26:04 AM UTC+2 Mat wrote:
>
>> I have a variable <<__chunk__>> with e.g the value bar/ and need to
>> find which tiddlers have a path field with where this value is a *suffix*.
>> For example, I need to find the two tiddlers that have these respective
>> path fields:
>>
>> path: foo/bar/
>> path: frotz/bar/
>>
>> It seems I must[1] use a regexp but I can't get this to work:
>>
>> <$vars chunk="bar/">
>> <$vars reg="[<chunk>$]" >
>> <$list filter="""[all[tiddlers]regexp:path<reg>]""">
>> <$link/> {{!!path}}<br>
>> </$list>
>> </$vars>
>> </$vars>
>>
>> (In actual use, the chunk variable is remote so it reads
>> reg="[<__chunk__>$]" )
>>
>> Is the regexp wrong? What to do? Better ideas?
>>
>> Thank you!
>>
>> <:-)
>>
>> *Note*
>> [1] Using the filter operator <https://tiddlywiki.com/#filter%20Operator>
>> for
>> a subfilter does not work because the filter op has a bug
>> <https://github.com/Jermolene/TiddlyWiki5/issues/5592>, i.e this does
>> not work:
>>
>> <$vars subfilter="[get[path]suffix<__chunk__>]">
>> {{{ [all[tiddlers]has[path]filter<subfilter>] }}}
>> </$vars>
>>
>
--
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/02c83f34-6734-4731-9edb-7e2f7bf9ed44n%40googlegroups.com.