Fact1) Sometimes there’s an option to use either a ListWidget or a RevealWidget because there is a conditional testing depending on a state.
Fact2) The ListWidget is often used for conditional tests, such as to see if the current tiddler has a certain tag in which case it should also show a certain template.
…but I often wonder if the ListWidget, in all its glory, isn’t “too heavyweight” for such simple matters as a simple comparison?
So, might it be beneficial to extend the RevealWidget to allow for more complex comparisons, to avoid the ListWidget? I.e rather than the RevealWidget just looking at a state tiddler it could really evaluate a filter (…which is then compared using the match, “gt”, etc…)?
Of less importance, but still, it is conceptually weird to use a listing tool when the outcome is a obviously a single value (or no value). One such case is when you want a “headline” over some list, but you only want the headline if there is a list. I have previously proposed some feature in the ListWidget for this but the recommended way to solve it is to use two listwidgets; the first containing the “headline” and using the same filter as the second one but whith a +[first[]]
operator thrown in. Clever… but definitely quirky.
So, would it make sense to extend the RevealWidget with a filter attribute? Or would that make it as heavyweight as the ListWidget so it kills the idea?
Or is this all just a non-issue?