On Monday, September 7, 2015 at 4:19:38 PM UTC+2, Jeremy Ruston wrote:
>
> This looks like a situation where it would be useful to use the hook 
> mechanism:
>
>
> http://tiddlywiki.com/dev/#HookMechanism:HookMechanism%20%5B%5BHook%3A%20tc-opening-default-tiddlers-list%5D%5D
>
> The idea would be for the navigator widget to invoke a new hook 
> "th-saving-tiddler" that gave plugins a chance to operate on a tiddler 
> before it is saved. I'll add it to my list, but please put your hand up if 
> anyone is willing to make a pull request.
>

imo plugins can't change the tiddler variable since its components are 
immutable. So I think there is no need for hooks. The tiddler has to be 
written to the store and it needs to be overwritten anyway. eg: Which hook 
will win, if 2 plugins need to work with the same hook? Also: What if the 
navigator widget is not involved?

IMO we should make the "tm-" and action widget mechanism more generic and 
usable for plugin authors. IMO the API is not very consistent atm. 

-mario

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/37449d55-1b89-41b5-bb1a-be1ed067b1a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to