Hallo everybody,
I'm quite new to TW and though I love it, going through the online documentation is painful.
Talking about one of the core features of TW, filters, from the online documentation it is very hard to me to grasp exhaustive rules about *where* a filter is syntactically allowed in TW, and given the crucial role filters play in TW architecture, I would suggest that the matter cannot be left unaddressed.
As far as a beginner can see, filters are surely allowed inside `<$list>` and `<$transclude>` widgets, as well as inside macro calls, and they can be assigned to a variable via the `<$set>` widget, but this falls very much short of comprehensively describing their syntactical usage throughout TW. What other widgets are filters allowed inside, and with what syntax? Filters' syntactical usage inside widgets is never described in a dedicated page/section/paragraph of the documentation, one has to gather up information on the matter incrementally, by browsing the documentation page after page.
For example, let's go through the online documentation by starting from page Filters
https://tiddlywiki.com/static/Filters.html From here we learn that "
A filter is a concise notation for selecting a particular set of tiddlers, known as its output. Whenever TiddlyWiki encounters a filter, it calculates the output." Fair enough, now we are left with the question of *where* can TiddlyWiki encounter a filter.
A few rows below, we come across the example macro call
`<<list-links "[prefix[H]]">>`
from which we can assume that one of the possible places filters belong to syntactically is a macro call.
Let's go further, to page 'Introduction to filters notation'
where we can read "Filters do nothing if you just type them into a tiddler on their own. They need a context." The text falls short of giving us any further detail of what a filter's context should be, and the rest of the page gives detailed examples of how to build filters without giving us any clue on *where* we can put them in the code.
All the other documentation pages about filters deal with their syntax, so we get to learn what is a filter expression, a filter run, a filter step, a filter parameter and what are the filter operators, but not a single bit of text shedding some light on *where* can we put filters in the context of TW syntax.
This matter is so crucial and central to the whole architecture of TW, it definitely needs to be addressed in a dedicated section, it cannot be left so opaque and hidden as it currently is.
Thanks and regards,
CG