Title prefix matching a macro to apply tag

71 views
Skip to first unread message

magasine

unread,
Jan 24, 2018, 8:35:17 PM1/24/18
to TiddlyWiki
Hi,

I have tiddlers that are named with a date prefix (ex: 20180125 - Event of the day) and would like to tag them when the prefix matches a macro: << now YYYY0MM0DD >>.

This should only happen when loading the page on the client side, not needing saving in html.

Has anyone in the group explored a similar solution?

Greetings!

Manoel.

TonyM

unread,
Jan 24, 2018, 9:12:40 PM1/24/18
to TiddlyWiki
I am still trying to understand what you need.

Why tag them if a list using prefix can always generate the same list?.

A single button with a list inside it can be used with actions to set a tag on every tiddler appearing in the list.

Regards
Tony

magasine

unread,
Jan 24, 2018, 9:46:43 PM1/24/18
to TiddlyWiki
Maybe something like the Startup Actions plugin (http://ooktech.com/jed/ExampleWikis/StartupActions/), which when displaying the modal tiddler, did it after marking it with a tag corresponding to the macro return << now YYY0MM0DD >>

magasine

unread,
Jan 29, 2018, 6:37:27 PM1/29/18
to tiddl...@googlegroups.com
Hi,

Thanks for listening.
The question was not well formulated.
I found my answer!

<$set name="today" value=<<now YYYY0MM0DD>> >
<blockquote>@@color:red;<$list filter="[all[]prefix<today>sort[]]" emptyMessage="No events scheduled for today!">


</$list>@@</blockquote>
</$set>


Greetings!

Manoel

TonyM

unread,
Jan 29, 2018, 7:26:58 PM1/29/18
to TiddlyWiki
Good to hear.

Tony
Reply all
Reply to author
Forward
0 new messages