In my current project, I have several occurrence of things like I want to iterate on the columns names stored on the columns field of a tiddler named by a variable. All this would be fine if filter code like this was possible:
[<mydata>list[columns]]
But the list
filter op only operates on text reference! I can build the reference within the filter but I can’t use :map next because it would only take the first column name! (and it would be quite a lot of code for so trivial a thing)
I could use get
then split
since my column names don’t have any space but:
1 ) it would lose a clear intent;
2) what if I had space (or similar but different use case)?
Would it be a good idea to alter list so that I could code:
[<mydata>list:field[columns]]
or even (while we’re at it)
[<mydata>list:index[columns]]
or should it be better to create a new listfield
operator to have:
[<mydata>listfield[columns]]