Mark S. wrote:
>
> A somewhat harder, but more reliable approach, might be to grab the text 
> from the widget tiddlers. At the
> bottom of each tiddler is text like:
>
> exports.setvariable = SetWidget;
>
> where you could, hypothetically, extract the widget name. Unfortunately, 
> for the "action-" tiddlers, you're
> going to have to append "action" since they're named differently (did I 
> mention names weren't logical?)
>

 Great observation! The following reveals some inconsistencies in the 
widget codes:

<$list filter="[all[shadows]prefix[$:/core/modules/widgets/]]">
<$set name=text filter="""[<currentTiddler>get[text]]""" >
<$set name=name filter="[enlist<text>reverse[]first[3]last[]removesuffix[;]]" 
>
<<name>><br>
</$set>
</$set>
</$list>

We can note that ActionListopsWidget does have the Action prefix. 
It seems the Edit-text widget is formatted differently. 
And there's "something" with both LinkCatcherWidget and SelectWidget.

Ought these things be "harmonized" (in which case this approach might be 
useful) or are they actually implemented as they should be?

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d8f289de-dcf3-4628-b637-1f31e3290969%40googlegroups.com.

Reply via email to