Hi Jeff, Jed,
> Is it possible to get the size of a list filter into a variable?
Not currently, no. There’s an enhancement already in the 5.1.14 prerelease that provides part of the answer: filtered transcluded attributes. These are attributes that return the first entry of a filtered list. For example:
<div data-my-value={{{ [<currentTiddler>get[document]] }}}>
…
The other part is that we need a “count” filter operator (at the moment, there’s only a count widget. The count filter operator would allow one to do things like:
<table colspan={{{ [tag[special]count[]] }}}>
…
I think it’s worth adding a “count” filter; I’ve also come across cases where it would be useful.
To clarify, Jed’s referring to the fact that we can’t extend the list widget to provide a variable with the count of the number of entries because it is optimised to re-use the widget and DOM trees of list entries through the insertion and deletion of entries.