In Tiddlywiki.com trye below examples:
- <$list filter="[add[0]]"/>
- <$list filter="[multiply[0]]"/>
Is this an small issue?
On Saturday, January 4, 2020 at 11:33:24 AM UTC-8, Mohammad wrote:In Tiddlywiki.com trye below examples:
- <$list filter="[add[0]]"/>
- <$list filter="[multiply[0]]"/>
Is this an small issue?What is happening is that, by default, a filter starts with an implied "all[tiddlers]".
Non-numeric list items (such as tiddler titles) have a value of 0.At TiddlyWiki.com, there are 1304 non-shadow tiddlers.Thus, each of the above filters is producing 1304 numeric results.This seems consistent and correct to me. What do you want the results to be?
-e
Mohammad,the Larger point is all filters act on a set of titles, the default is as Eric said, is all[tiddlers]When I first read your examples, I immediately saw you have not defined the scope of this set and it would thus default to all[tiddlers]You no doubt often start a filter with all[current], !is[system] etc... which is the first step to limit the size of the set of titles to be used by the filter.I feel it is this concept which may need to be documented, rather than all the possible "invalid" cases one could write, like you adding 0 to every title.