list filter macro - space in tag

395 views
Skip to first unread message

Keith Silva

unread,
May 11, 2011, 2:17:12 PM5/11/11
to TiddlyWiki
I'm trying to use the list filter macro with tags that contain spaces,
such as:

<<list filter [tag[[test tag]]]>>

It works if there is no space in the tag, but fails when the tag
contains a space. Is there a syntax that will allow tags with spaces?
I've tried a few things with no luck.

Thanks, Keith Silva

PMario

unread,
May 11, 2011, 3:00:30 PM5/11/11
to TiddlyWiki
may be to many brackets. Try this:

<<list filter [tag[test tag]]>>

-m

Keith Silva

unread,
May 11, 2011, 3:27:25 PM5/11/11
to TiddlyWiki
I've double-checked that syntax and it doesn't work. I also tried
single and double quotes in lieu of brackets, even with brackets!
Thanks for the input, though.

Keith S.

PMario

unread,
May 11, 2011, 7:32:28 PM5/11/11
to TiddlyWiki
This works :)
<<list filter "[tag[this tag]]">>

rakugo

unread,
May 12, 2011, 7:46:07 AM5/12/11
to TiddlyWiki
Pmario is correct
In the current implementation the filter must be wrapped in quotes.
TiddlyWiki's parameter handling looks for spaces so as a result it
thinks the filter you are giving it is "[tag[this" without the quotes
which is an invalid filter.

Jon

Keith Silva

unread,
May 12, 2011, 4:33:16 PM5/12/11
to TiddlyWiki
Thank you PMario and Jon! Yes, PMario's solution works. Thanks for the
help. I would not have fixed this on my own.

Keith Silva
Reply all
Reply to author
Forward
0 new messages