I finally made something that can do what I wanted the link-fields widget 
to do without breaking everything. It is a background process (Daemon) that 
listens for changes in a set of tiddlers and when a change occurs it 
performs a list of actions in another set of tiddlers.

This can be used to do a lot of things, at the moment I have a simple 
example that sets the text field of multiple tiddlers based on a single 
select widget. Yes, this is a very simple example and for this it would 
probably be better if I just modified the select widget. Like I said, it is 
a simple example.
http://ooktech.com/jed/ExampleWikis/TriggerActions/

This can be used to do much more than that, in addition to being able to 
trigger action widgets on changes to a tiddler, the tiddlers acted upon can 
be set by a filter (and yes, there are things in place to prevent infinite 
loops from having two set up that each modify the other one).
For a list of what would be possible with this, but using the link-fields 
widget you can look here 
http://inmysocks.tiddlyspot.com/#The%20link-fields%20Widget
Don't use those in your own wikis though, they are just there because I 
haven't removed them yet. I will hopefully get equivalent things using the 
trigger actions daemon soon.

How to use it:

Any tiddler tagged 'act' will be an expression tiddler, you can change the 
tag used in the control panel (I really need to find somewhere else to put 
the configuration things, my wikis have way too many control panel tabs).

The tiddler will then use a special view template.

The checkbox at the top will turn the actions listed in that tiddler on or 
off, if it is off nothing will be updated.
The listen filter should be a filter that returns tiddlers that will 
trigger the actions when they are changed
The action filter lists the tiddlers that will be acted upon

Below that you can add actions, the action name has to be a valid field 
name, and the action itself can be any action widget or macro that could be 
triggered by a button. Once those are filled out click 'add' and it will be 
listed under the current actions heading.
You can have multiple actions, just add more if you want more.

The tiddlers returned by the action filter will each have the actions 
listed triggered with the currentTiddler variable set to that tiddler.

This can be combined with the calc macro Tobias made to have automatically 
updating calculated values. http://tobibeer.github.io/tb5/#calc

I haven't had too much time to play with this yet, but I will work on 
making stuff with it.

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

Reply via email to