Hi Andreas

> I hope this helps, even though it is quite long.

It's terrific, a great way to show how TiddlyWiki works. Would you consider
expanding it into a "What's going on inside TiddlyWiki?" tutorial?

Best wishes

Jeremy.



On Thu, Feb 19, 2015 at 8:40 AM, Andreas Hahn <[email protected]>
wrote:

>  Hi Jed,
>
> good to hear that it helped you. I took a look at the evaluateExpression
> code and overall it looks pretty good. There are two things I want to
> mention though:
>
> * It is nice to see that you are using the setVariable function of the
> widget, however when doing this, be aware that variables set in the
> makeWidget actually overwrite the variables set by the setVariable function
> since the former creates set-widgets inside the widget (if i am not
> mistaken).
>
> * If you use a current version of TW (by current I mean anything younger
> than 30 days), you should be able to change
>
> widgets.children[0].invokeActions({});
>
> to
>
> widgets.invokeActions({});
>
> This is also wise from a programming standpoint, since it does not assume
> any structure that may or may not be present within the widgets object and
> the children.
>
> /Andreas
>
> Am 19.02.2015 um 08:25 schrieb Jed Carty:
>
> Thank you! I got it to work, and learned a lot more about how tiddlywiki
> works. The updated code is on github if you are interested.
>
> The goal is to have something like a button that can trigger action
> widgets or macros, but instead of the event that triggers them being a
> mouse click it is a change to some set of tiddlers or fields.
>
> There is a filter that determines the tiddlers that will be acted on, a
> list of actions to take on each of those tiddlers and a filter that
> determines what changes will trigger the actions.
>
> I haven't added the list of tiddlers to listen to for changes, and I need
> to add some field to all of them so that it can't change one of the
> tiddlers it listens for and end up in an infinite loop. I haven't tested it
> when it makes a lot of changes yet, so it may not be practical because of
> how long the updates take, but if it does work I think it could be very
> useful.
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to