I wonder if variable (like in the reduce
operator) could be a way to devise a filter operator that could make it possible to have such possibility:
[foo] → [foo and bar]
where bar would be computed from the foo tiddler.
for instance, I have a “tables” dictionary where the “t3” key has a “p4 p7” value.
what I would like to get is something like [t3]mystery[tables]
or [tables]mystery[t3]
that would result in a [p4 and p7 are on table t3]
. All of this within a single filter run (which could be composed of several filter runs).
And also, could operator variables allow something like:
[[t3]%getindex[tables]]
equivalent to [[tables]getindex[t3]]
Because sometimes t3
is in fact the result I’ve got earlier inside the filter. I I could use it immediately, it could allow for some clever things done in the same filter. And this could simplify a lot of things in some cases, instead of having variables and several filters while having to write field(s) with your results and later exploit those fields.
Note that %
would be a convention to stipulate such a behaviour, in the like of !
. I have already noticed that this %
would require checking every macro with !
capacity because often the code for checking !
is bit too hasty/optimist and would break.