I was doing some tests to see if it was possible to circumvent filter deduplication to be able to join titles and filter runs in a single string without the need for adding a =
for every input title, when I came across the enlist-input:raw[]
operator. I though I would be able to use this to convert a string of text into an un-duplicated list and then use a :map
filter run to run each title with a subfilter[]
operator, but it turns out that the enlist input remove the brackets when it turns a string into a title, which prevent the subfilter operator from working.
I tried to fix that with the format:titlelist[] operator, but it only add brackets to title with spaces.
Therefore, I think it would be great to have a flag to force that on every titles (except those already in brackets), that way the following would be possible :
{{{
'
A
[[1]add[1]]
A
'
+[enlist-input:raw[]format:titlelist[]]:map[subfilter<currentTiddler>]
}}}
Expected output :
A
2
A
Currently :
A
Filter error: Syntax error in filter expression
A
This is because enlist-input will remove the brackets of the filter “[[1]add[1]]” and thus the subfilter operator fail.
To fix that, I think the syntax of format:titlelist[]
needs a flag to always add brackets when there is no brackets, something like format:titlelist:all[]
maybe, or format:titlelist:raw[]
.
Another option would be to extend the syntax of the join[] operator to allows duplicate input titles, something like +[join:raw[]]
.
What do you think ?