>> Is your code available on GitHub? It would easier for me to inspect it 
and provide comments there.
I still need to set that up. Coming soon 


>> >> My next item is to implement the ability to control the reveal widget 
by searching for the presence of a tag on a tiddler.
>> I originally thought that functionality would be necessary but it turns 
out that the list widget can already do it:
>> <$list filter="[is[current]tag[mytag]]" emptyMessage="Displayed if the 
tiddler doesn't have the specified tag">
>> Displayed if the tiddler does have the specified tag
>> </$list>
Awesome. 

But in exploring this I've come up with a bizzarre edge case involving 
malformed tiddler titles being set as tags

* I can create a tiddler with the title [[tiddlyWiki]]
* I can link to that tiddler using <$link 
to="[[tiddlyWiki]]">``[[tiddlyWiki]]``</$link>
* I can set a tag "[[tiddlyWiki]]"
* I may be able to include that tag in a filter expression but I can't 
figure out how
* This checkbox doesn't work: <$checkbox 
tag="[[tiddlyWiki]]">[[tiddlyWiki]]</$checkbox>
* The reason it doesn't work is because while $tw.utils.stringifyList will 
place the brackets into the field, $tw.utils.parseStringArray removes them 
because they are read as a delimiter rather than part of the tag (if there 
were a space in the middle it would be a delimiter

I could fix this by either 
* disallowing the edge case in $tw.utils.stringifyList and addTiddler
* parsing the edgecase in $tw.utils.parseStringArray and maybe some other 
places
* Tell people not to do that

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to