That's pretty cool, Tony. Something like this (meaning, "if it's there, use it") should be in the core. It adds extensibility to the core and increases hackability.
Mat - what Tony has done is something akin to the LinkCatcher widget https://tiddlywiki.com/#LinkCatcherWidget. Tony - you might want to look again at LinkCatcher - maybe workout how to remove the need for tags? On Saturday, September 28, 2019 at 5:06:18 AM UTC-5, TonyM wrote: > > Mat > > The idea is it uses the one macro with a tag name to locate the actions to > apply. Adding an action to any existing button requires you taging a > tiddler containing the additional actions. > > The key is that any number of action tiddlers can be used on any button. > Any single action can be used on any nUmberto of buttons. > > In the demo, a log action tiddler is tagged with all buttons custom action > tag. As a result every button is using the additional action. > > if a simlar solution is placed in the standard distribution, you do not > need to modify core tiddlers to add custom actions. just place a tag on > your custom actions. This allows multiple macros and plugins to use this > mechanisium without clash. > > Building your own buttons and other widgets with actions you can use the > same mechanism. Rather than hard code actions use the tag mechanisium. > > With tags you can add and remove them. You can have a run once by using an > action tiddler that removes its own tag. You could even have a chain of > such actions. > > Does that help? > > Tony > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f48e1b12-0fa9-4f76-b3da-aced1a54aa35%40googlegroups.com.