Hi Matabele,
 

> The introduction of a new <<targetTiddler>> variable within the enclosing 
> $button widget would be a tidier approach:
> -- the value of this variable could then be set by any action widget (when 
> specified)
> -- and could then be used by any following action widgets by default.
>
> This would also address the annoying necessity of having to re-specify the 
> target when using a stack of action widgets with the same target.
>

I very much agree, *targetTiddler* would be a better choice of parameter 
than *currentTiddler*.

Perhaps a core function could ensure that all action widgets actually 
identify the target they act on in the exact same way:

$tw.wiki.getTarget(title);

...using *title* as the target, otherwise falling back to using the value 
stored in *targetTiddler*. Not sure if there are differences, but widgets 
would call that function with whatever attribute the user is asked to use 
for specifying the tiddler title, e.g. *tiddler*, *$tiddler*, or *param*.

Best wishes,

— tb 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2db53731-dd43-4a7b-86a2-166589232bb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to