> However when I try embedding toggleTag inside matchTags, for example:
>
> <html><font size="1"><matchTags inline "# <<toggleTag complete '%0'>>"
> "\n" sort:+myfield (task AND mycategory AND someothertag) AND !
> (complete) >></font></html>
1) It's not clear to me why you are wrapping the macro inside HTML
just to set the font size. You could write:
@font-size:7pt;<<matchTags ... >>@@
and skip the HTML entirely.
2) The main problem is that a parameter *within* the <<matchTags ...>>
macro is using ">>" as part of it's value. However, ANY occurrence of
">>" signals the *end of macro* syntax. Thus, the remainder of your
macro params "fall out" of the macro and are displayed as content.
Fortunately, because the parameter in question is a text string.... so
can use "backslash quoting" to break up the ">>" with an intervening
"\", like this:
"# <<toggleTag complete '%0'>\>"
Unfortunately, however, MatchTagsPlugin does *NOT* automatically
convert backslash-quoted characters (except for newline -- \n).
Fortunately, you can easily work around this by using the "evaluated
parameter" syntax, {{...}}, to pre-parse the value and convert the
"\>" into a simple ">", like this:
{{"# <<toggleTag complete '%0'>\>"}}
Putting it all together, try this:
@@font-size=7pt;<<matchTags inline {{"# <<toggleTag complete '%0'>
\>"}} "\n" sort:+myfield (task AND mycategory AND someothertag) AND !
(complete)>>@@
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.