Good observation, Eric. Mahalo (thanks)!

- Joshua Fontany

On Tuesday, September 29, 2020 at 2:28:38 AM UTC-7 Eric Shulman wrote:

> Hi all...
>
> While debugging some of my TiddlyTools Timer functions,
> I encountered a curious side-effect of the TWCore refresh handler:
>
> If you use the <<now>> macro to display the date and time
> <<now "MMM DDth YYYY at 0hh:0mm:0ss.0XXX">>
> it shows the time at the moment that the tiddler contents are rendered and
> the displayed value remains unchanged until the tiddler is closed and 
> re-opened
> (or you switch from view mode to edit mode and back again).
>
> However, if you write:
> <$vars time=<<now "MMM DDth YYYY at 0hh:0mm:0ss.0XXX">>><<time>></$vars>
> it not only shows the time when the tiddler is rendered, but it also
> *automatically updates whenever *anything* happens in the wiki.*
>
> This is due to the way that the TWCore handles refreshing the display, and 
> includes
> every time you open or close any tiddler, switch tabs in the sidebar, 
> click any menu item,
> display a tag, check a checkbox, select from a list, etc.  It even updates 
> every time you
> enter any keystroke in any input field!  (Try typing space, backspace, 
> space, backspace, etc.
> into the sidebar search input, and watch as the time display is refreshed).
>
> Note that this isn't a bug.... it's an integral part of the way that the 
> TWCore works and
> demonstrates some of the sheer power (and subtle complexity) of Jeremy's 
> creation.
>
> -e
>

-- 
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/d6fb0e4d-448d-4357-a19e-1357cd35d4ecn%40googlegroups.com.

Reply via email to