How can I use <<now>> inside a filter?

57 views
Skip to first unread message

j3d1h

unread,
Oct 19, 2018, 7:36:47 PM10/19/18
to TiddlyWiki
I'm trying to list (with list-links) everything tagged with "Tag" that also begins with the current year and month (specifically in the format "YYYY.0MM."). I can kind of do this, with this line:

<<list-links [tag[Tag]prefix[2018.10.]]>>

Which works, but I don't want to hardcode the prefix part. I know I can use "<<now YYYY.0MM.>>" to automate it, but I can't seem to get prefix to take now as input. The regexp filter works, kind of, but I can't think of anything except allowing digits. Anything I'm missing? (Maybe list-links and filters aren't quite right for this?)

Mark S.

unread,
Oct 19, 2018, 7:43:20 PM10/19/18
to TiddlyWiki
Try

<$set name="mydate" value=<<now YYYY.0MM.>>>
<<list-links "[tag[Tag]prefix
<mydate>]">>
</$set>

-- Mark

j3d1h

unread,
Oct 19, 2018, 9:44:10 PM10/19/18
to TiddlyWiki
...Oh. Yeah, I probably missed part of the documentation. Thank you, that's perfect! :)
Reply all
Reply to author
Forward
0 new messages