There's something fundamental about filters that I'm not getting:

in the advanced search filter tester thingie, this works:

EXAMPLE 1: 
[is[current]][tag[Subjective]]-[!regexp:dates[2020-05-01]]

i.e. it lists the single tiddler with the dates field


but in a viewtemplate tiddler:

EXAMPLE 2: 
<$set name="mytoday" value="{{my-now}}">
<$list filter="[is[current]][tag[Subjective]]-[!regexp:dates[2020-05-01]]" 
variable=null>
                             
{{||SubjectiveTemplate}}
</$list></$set>

it doesn't work


this does work (carets not really in code, just to point out the 
difference):

EXAMPLE 3: 
<$set name="mytoday" value="{{my-now}}">
<$list 
filter="[is[current]]-[!tag[Subjective]]-[!regexp:dates[2020-05-01]]" 
variable=null>
                            ^ ^ 
{{||SubjectiveTemplate}}
</$list></$set>




but this doesn't work:

EXAMPLE 4: 
<$set name="mytoday" value="{{my-now}}">
<$list filter="[is[current]]-[!tag[Subjective]]-[!regexp:dates[<<mytoday>>]]" 
variable=null>
                                                                    ^
{{||SubjectiveTemplate}}
</$list></$set>

all tiddlers are rendered as a match


and neither does this:

EXAMPLE 5: 
<$set name="mytoday" value="{{my-now}}">
<$list filter="[is[current]]-[!tag[Subjective]]-[!regexp:dates<<mytoday>>]" 
variable=null>
                                                              ^
{{||SubjectiveTemplate}}
</$list></$set>

no tiddlers are rendered as a match


Just wondering 2 things:
A) why does EXAMPLE 1 work but not 2? (or why 3 and not 2)
B) Although using <<mytoday>> outside of the filter does return the correct 
date, why does it not work inside the filter?


Thanks,
- Dave

-- 
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/b951c768-0af1-4a72-a2f3-77d8e931d312%40googlegroups.com.

Reply via email to