Jed,
I think this a worthy goal, bas you say, if not done perfectly it could really confuse things, filters are sophisticated as they stand, and if such a possibility is available they could be made extremely sophisticated.
This would solve a number of issues commonly raised so its a great idea.
Perhaps a plugin or macro first or only?
- Having considered this path before perhaps a macro or plugin that you
- pass an "advanced filter" to that pre-processes additional syntax like you "->"
- Then generates the nested lists version with the filters and varnames applied
I was thinking something similar such as "(filterrun)outputvaname (filterrun2)outputvaname2 (filterrun3)outputvaname3" and a template parameter
Programatically generates
<$list filter='filterrun' variable=outputvaname>
<$list filter='filterrun2' variable=outputvaname2>
<$list filter='filterrun3' variable=outputvaname3>
{{||TEMPLATE}}
</$list>
</$list>
</$list>
In which template can return contain
<<outputvaname>> <<outputvaname2>> <<outputvaname3>><br>
Or call other macros with the values
<$macrocall$name-othermacro p1=<<outputvaname>> p2=<<outputvaname2>> p3=<<outputvaname3>>/>
Ideal this would nest as many times as there are "subfilters"
Subfilters?
That made me think, what about extending the subfilter operator here?
subfilter:varname[subfilter] or subfilter:varname<subfilter>
Or perhaps thinking even bigger?
Be it through extending filters or other means,
- looking to address all the kinds of queries we may be able to do, in something such as SQL, would be valuable in the long run.
- Perhaps even a different set of Queries that return json files with the results there in?
- It would be great if we could treat related tiddlers as rows in a table, fields and columns and use actual SQL or similar.
Regards
Tones