Michael Z.,

A Quick answer is we can easily pass filters as parameters (not 
demonstrated here) however life has been much easier for me since I started 
applying the method below to my own macros

However your issue is with a macro to which you pass a filter. Did you 
follow the notes in https://tiddlywiki.com/#csvtiddlers%20Macro to see the 
use?
<<csvtiddlers filter:"""$(exportFilter)$""" format:"quoted-comma-sep">>
in this case the export macro builds the filter into a variable exportFilter 
before calling the macro.


In my own macros the filter to select is usually outside the macro, and the 
macro operates only on currenttiddler

<$list filter="filterhere">
Call or do anything with the current tiddler including my macros
</$list>
filterhere would generate a list of tiddlers

You can also use the $tiddler widget for a single tiddler

<$tiddler tiddler="named tiddler">
Call or do anything with the current tiddler including my macros
</$tiddler>


So now almost all macros I write to use are written to handle the 
"implicit" current tiddler. Thus in my macros the filters nearly always 
start "[is[current]... to operate on the current tiddler

Then there are cases when the list is generating tag, string or field-names 
to operate on so I use a variable in the list command to stop 
currenttiddler changing

<$list filter="eg tags or fields[]" variable="helpfulname">
In here current tiddler remains that of the tiddler that is current, and 
you can use <<helpfulname>>, including my macros
</$list>


<$list filter="a test filter" variable="null">
a bit like using reveal
In here current tiddler remains that of the tiddler that is current, 
including my macros, and you never use the variable, so I call it null. 
</$list>


I hope the above is meaningfull to you.

Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/782d29bf-5a27-40cd-8329-36ecf249d9d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to