Is re-rendering of tiddlers w/o user interaction possible?

59 views
Skip to first unread message

Hubert

unread,
Jan 22, 2019, 9:14:40 AM1/22/19
to TiddlyWiki
Hi everyone,

If I understand correctly, most content within a tiddler is static. Inline javacript is not allowed, so macros will only re-calculate their output on user interaction with a tiddler. For example, the <<now>> macro or Evan Balster's <<formula>> macro will recalculate their output when the built-in "More actions" TW button is pressed (it's located in the upper-right corner of each tiddler frame).

What I'm trying achieve is make stuff happen with time being the trigger. The simplest example would be building an auto-updating clock using the <<now>> macro (this could be faked using SVG animations but that's not what I'm looking for). Another example would be a reveal widget that will suddenly display content when the current time matches a predefined value but without any user interaction whatsoever. Such a solution would need to somehow 'see' on its own that the time has changed. Is this possible?

Thank you in advance for sharing your ideas/knowledge.

-Hubert

Hubert

unread,
Jan 22, 2019, 9:35:07 AM1/22/19
to TiddlyWiki
OK, I've found this plugin by Evan Balster, version 0.0.1 that does exactly what I'm looking for.

That said, I'd still love to hear your ideas though, especially the background TW mechanics/limitations/other solutions to this problem.

Thank you,
Hubert

Jeremy Ruston

unread,
Jan 22, 2019, 11:46:39 AM1/22/19
to tiddl...@googlegroups.com
Hi Hubert

Evan’s plugin is the right thing to use if you can; the core doesn’t include a builtin clock/timer because my early experiments showed that it can be quite punishing on power consumption/battery life.

Best wishes

Jeremy



-- 
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fb51bbb5-2009-4c90-9188-819785ac0954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hubert

unread,
Jan 22, 2019, 11:50:45 AM1/22/19
to TiddlyWiki
Thank you Jeremy for sharing this. It's a fair point and worth taking into consideration (it could negatively sway the cost-benefit ratio in some situations).

Best regards,
Hubert
Reply all
Reply to author
Forward
0 new messages