New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of relative dates #1268

Open
Jermolene opened this Issue Dec 22, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@Jermolene
Owner

Jermolene commented Dec 22, 2014

The current "relativedate" format of the view widget has two disadvantages:

  • The relative time isn't updated automatically
  • The relative date should be displayed as an absolute date in static renderings

It is proposed to introduce a new relativedate widget that resolves these issues.

@Drakor

This comment has been minimized.

Contributor

Drakor commented Dec 22, 2014

Well TiddlyWiki doesn't offer anything "timer-like" in $tw.utils either. So in the past, to get something to update, I wrote a small <$refresh cycle="MILLISECONDS"> widget, which helped me get things like a the relative date (or clocks) and similiar working.

/Andreas

@Jermolene

This comment has been minimized.

Owner

Jermolene commented Dec 22, 2014

Hi @Drakor I believe that what we need is a way for the widget refresh mechanism to keep track of a "minimum time until next forced refresh". Each widget would have the opportunity to set or lower the limit. Then at the end of the main refresh cycle we'd set a timer to force the refresh. If an ordinary refresh occurs in the meantime we'd reset the timer.

One difficulty is that there's nowhere obvious to store this running state as we do the refresh processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment