Folks,
I almost have a simple Boolean tag search see
discussion working. HoweverI am bugged by the following, which does everything I want but results in leading and trailing spaces in the resultant macro value. This seems to be enough to stop any filter using this value.
\define displaymyfilter()
<$list filter="[list[EditInput!!input]]" variable=item>
<$list filter="[<item>!prefix[+]!prefix[-]]" variable=tagfilter>
[tag[<<tagfilter>>]]
</$list>
<$list filter="[<item>prefix[+]]+[removeprefix[+]]" variable=tagfilter>
+[tag[<<tagfilter>>]]
</$list>
<$list filter="[<item>prefix[-]]+[removeprefix[-]]" variable=tagfilter>
-[tag[<<tagfilter>>]]
</$list>
</$list>
\end
- Debug: Source Field "one two -three" Comes from {{EditInput!!input}}
- Debug: My Constructed Filter "
[tag[one]]
[tag[two]]
-[tag[three]]
" Output of <<displaymyfilter>>
- Note: The leading and Trailing spaces in my constructed filter.
Which means
<<list-links filter:"<<displaymyfilter>>" >>
Throws a display error, does not work, multiple formats tried! also <$list...
Tiddler ends with a <$set>