As part of a plugin I'm working on, I am trying to group a variety of 
tiddlers by one or more categories.  In order to do this, I added a 
category field, and populated it as a list field.  Then, to generate a list 
of all the items in my plugin, by category, I did 

<$list filter="[tag[MyPlugin]each:list-item[category]sort[]]" 
variable="Category">
<$link to<<Category>><<Category>></$link>
<ul>
<$list filter="[all[tiddler+shadows]<Category>listed[category]]">
<li><$link><<currentTiddler>></li>
</$list>
</ul>
</$list>


This worked great in development, but once I packaged the plugin, none of 
the items in my categories were showing up.  After some digging, I 
determined this is because the `listed` operator uses findListingsOfTiddler 
which in turn, uses .each rather than .eachTiddlerPlusShadows.  I'm not 
sure the correct fix for this.  For my own purposes, I can override 
`findListingOfTiddler, and it doesn't seem to have negative effects.  But 
I'm not sure that solution would be safe in all situations.  

Is this an actual bug in Tiddlywiki?  Is there another way to achieve what 
I'm trying to achieve?  I've opened a ticket 
<https://github.com/Jermolene/TiddlyWiki5/issues/2956>, but I'm not sure 
how what the "correct" way to fix it would be.


Thanks,
Matt Lauber

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
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/c859ff9a-14d3-4cc5-90e5-d7515304c623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to