[TW5] Action widget execution on tiddler open

165 views
Skip to first unread message

Danielo Rodríguez

unread,
Sep 28, 2015, 5:57:36 AM9/28/15
to TiddlyWiki
Hello.

Did I dream about it, or is it possible to "execute" action widgets contained in a particular tiddler when that tiddler opens? This would be specially useful if a certain configuration is required for a particular tiddler.
I think I have read about it, but I am not sure.

Many thanks

Andreas Hahn

unread,
Sep 28, 2015, 10:39:45 AM9/28/15
to tiddl...@googlegroups.com
Hi Danielo,

yes there are to the best of my knowledge two things that will accomplish that: I think Jed extended his Trigger action daemon to the point where a navigation event (i.e. a change to the Story tiddler) can trigger actions. The other thing I know of is a widget contained in my unibar plugin called fireonrender.

I am not sure about the details of Jed's work, you can take a look at the widget I mentioned in the old unibar wiki that I once posted here: http://twguides.org/wiki/unibar.html (take a look at $:/plugins/ahahn/unibar/fireonrender.js which is also used in the rename mechanics, so try renaming a few tiddlers with redirection to test it out).

About Jed's work, you might learn something here: http://inmysocks.tiddlyspot.com/#TriggerActions%20Plugin and here: https://github.com/Jermolene/TW5-TriggerActions although I am unsure about the current status of the project.


/Andreas
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eb083ede-e976-4547-a7af-c47da8108eb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Danielo Rodríguez

unread,
Sep 29, 2015, 1:13:00 PM9/29/15
to TiddlyWiki
Hello Andreas,

Thank you very much. I will take a look at your unibar plugin and the js file you are pointing. Looks like it depends on $:/plugins/ahahn/unibar/commonAction.js. Is commonAction required for the basic functionality? I suppose the answer is yes, but sure asking does not hurt :P

By the way, the looking is awesome!! I love the look and feel, do you mind if I borrow some styles?

Also I saw an awesome trick, that deserves to be on tiddlywiki.com: the list after field on the stylesheet tiddler. I was getting crazy about it! I was trying to override some styles and they were not being applied. Thank you for this also.

Thank you very much!!

Andreas Hahn

unread,
Sep 29, 2015, 2:13:11 PM9/29/15
to tiddl...@googlegroups.com
Hi Danielo,

glad it could be of help. Yes the commonAction.js is required (you can see the setup method being called in the fireonrender constructor), but you are free to (and in fact I would recommend to) change the the name to "YOURPLUGINcommonAction", as I (and possibly other people) use this little helper widget in other plugins and the naming would ensure that it doesn't clash. (Example: I am using the same helper widget in Tinka as well, where I use it for regex checker and action filters and there it is named TinkaCommonAction)

Also, you can "borrow" (i.e. copy) as many of the styles and code/tiddlers as you want. I actually use the unibar plugin everyday as it simplifies my workflow immensly, but I haven't gone through the trouble of making it presentable or more available to other people. The trick with the list-after field is definitely one that should be included on tiddlywiki.com, if not already. (I think I only found it through googling in an older thread on this group)

/Andreas
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

Tobias Beer

unread,
Sep 29, 2015, 2:28:04 PM9/29/15
to TiddlyWiki
Hi Andreas,

I didn't take a look at how common the things are that your commonAction.js provides.
Have you been proposing any of that to the core or considering that?

Best wishes,

— tb

Andreas Hahn

unread,
Sep 29, 2015, 3:21:14 PM9/29/15
to tiddl...@googlegroups.com
Hi Tobias,

Yes, I did suggest and talk about it in this issue here: https://github.com/Jermolene/TiddlyWiki5/issues/1903 .
As far as I am concerned, Jeremy did give me a go on that one, which means that eventually I am gonna sit down and work out a few more concrete things and start a development branch on that. It is quite a big undertaking to kinda retroactively apply those simplifications to the widgets that are already in the core and I believe before I attempt any of that, there should be more tests testing the behaviour of widgets.

/Andreas
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

FrD

unread,
Sep 29, 2015, 4:18:34 PM9/29/15
to TiddlyWiki
Hi Danielo,

Are you talking of that : http://tiddlywiki.com/#Order%20of%20Tagged%20Tiddlers ?

FrD

Le mardi 29 septembre 2015 19:13:00 UTC+2, Danielo Rodríguez a écrit :
Hello Andreas,

...

Tobias Beer

unread,
Sep 30, 2015, 1:39:24 AM9/30/15
to TiddlyWiki
Hi Andreas,
 
Yes, I did suggest and talk about it in this issue here: https://github.com/Jermolene/TiddlyWiki5/issues/1903 .

Ah, that's what that is.
I didn't quite make the connect.
Left a comment on GitHub:

https://github.com/Jermolene/TiddlyWiki5/issues/1903#issuecomment-144286827

Best wishes,

— tb 
Reply all
Reply to author
Forward
0 new messages