Interesting suggestion. When I recently raised the push pop suggestion it was pointed out this kind of function works already. Which makes me think there is a possibility of an existing pattern that can do this.
I will explore and report
Tony
I call these values the namespace
<$list filter="[all[shadows]removeprefix[$:/]splitbefore[/]removesuffix[/]]">
</$list>
Or you could add prefix at the end $:/
Each time a macro calls a macro, as in toc or recursive macros that call themself, a variable which is set is valid for that call of the macro. When it ends it reverts to the previous value.
In a way each set of the same variable is a push, and when you arrive at the /$set its a pop.
From this idea I want to try and create what was implied in the original post and my response
Regards
Tony
When I recently raised the push pop suggestion it was pointed out this kind of function works already.
As you can see from my example before [...]
I don't quite understand your description here but you do mention "nesting" a lot. However, a main idea with my proposal is to avoid manually nesting stuff by enabling a "flat" filter so you can directly use it in e.g a single listwidget. We'd achieve the same output by nesting listwidgets - in fact that is exactly what we currently do - so when you talk about adding macros to it, I suspect that this would only be another optional but also complex solution - n