I would like to be able to create something that has the same functionality as the widgets in the MathyThing plugin that doesn't require a user action to update.
Jeremy suggested I create a daemon that runs in the background and updates the outputs when appropriate.
I was hoping that someone could point me in the direction of an example of a daemon used in tiddlywiki before I start poking the code trying to learn how without an example.
I have found some examples of generic javascript daemons, but I am not familiar enough with javascript to implement them in tiddlywiki without a lot of trial and error, which is what I would like to avoid if possible.
I would like to be able to create something that has the same functionality as the widgets in the MathyThing plugin that doesn't require a user action to update.
However, you'd potentialy running into the same problems. Only just slightly less forcefully.
Jeremy suggested I create a daemon that runs in the background and updates the outputs when appropriate.
When appropriate is the key here. It shouldn't run on a timer but rather hook into certain events... hooks that may not exist yet.
I was hoping that someone could point me in the direction of an example of a daemon used in tiddlywiki before I start poking the code trying to learn how without an example.You might want to come to terms with how you envision that process to (safely) work... and then as that specific question with respect to what precisely your daemon is supposed to achieve (and above all WHY).
I have found some examples of generic javascript daemons, but I am not familiar enough with javascript to implement them in tiddlywiki without a lot of trial and error, which is what I would like to avoid if possible.
Understandably... but you might just be headed towards mostly unexplored waters.Best wishes, Tobias.
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.
The best example of a daemon in the core is the favicon handling in $:/core/modules/startup/favicon.js. It's a startup module that automatically updates the DOM's favicon link every time the tiddler $:/favicon.ico changes.
It was surprisingly easy to convert the widget into a daemon.
Because the widget input syntax isn't available I need to find some better way to give inputs than I have now. I think that is just going to be a lot of regular expressions and text parsing and, while that may not be trivial, I at least have a pretty good idea how to make it work.
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.
[[x|"tiddler"]] link
{{"tiddler"}} transclusionThis could of course be solved, but it would make the tokeniser messier.