Tony, great start. Here is some feedback.
1) Maybe it is just part of the demo but the button literally has the label
"buttonname is false".
2) I get a false positive in
<$list filter="[{$:/config/button-buttonname-state}] -[[false]]"
variable=nul>
Show when true
</$list>
i.e "Show when true" shows without having clicked the button. I suspect the
filter leaves "remaints" when the state tiddler doesn't exist, like empty
brackets, so it becomes "[] -[[false]]" which is not empty. Try this for
example: <$list filter="[{doesntexist}]">xxx</$list>
3) For the reveal, are you saying the user should manually type in one (or
even several?) of those listwidgets/revealwidgets? That kinda defeats the
point with the simplified button. To name one thing, how is the user
supposed to remember the string "$:/config/button-buttonname-state"? I'd
suggest packing this into a macro as well. (And what's with the unused nul
variable?)
4) Before it is released, may I humbly propose that you make the code more
dry <https://en.wikipedia.org/wiki/Don%27t_repeat_yourself>, i.e that you
move the identical parts of the macros to a single macro and have the call
to it define if it is "here" or "global". Currently, it is a pretty big
code for a small thing. By doing this you could also use, say, the "here"
version as a default so that the user can use "<<toggle Foo>>" or
"<<toggle-global Foo>>".
This could really be something useful!
<:-)
--
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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/b7d9b521-23f9-429a-a0b9-ad433bed5c13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.