Hi all,
In the follow-up around the web to the
release of TiddlyRemember, some people took issue with the approach of putting questions in macro calls, wishing instead questions could be placed in individual tiddlers. Well, it turns out this was actually possible the whole time and neither I nor anyone asking ever thought of it! All you have to do is create a sort of "aggregation" tiddler with a list snippet like this:
<$list filter="[tag[TiddlyRememberNote]]">
<$macrocall $name=rememberq id={{!!created}} question={{!!question}} answer={{!!answer}}/>
</$list>
Then you just create tiddlers with question and answer fields tagged with TiddlyRememberNote, and all the questions will show up in this tiddler. Make sure that the filter pulling the tiddlers that should be searched to retrieve notes matches this tiddler, and you're set. Of course, this is just one example – any data you can retrieve with filters can be used to generate TiddlyRemember notes in the same fashion.
There's one issue with the version above: the reference on each Anki note would just point back to the aggregation tiddler, which isn't very useful. TiddlyRemember 1.1.0 (released today) now supports an optional fourth reference parameter to the macro, which causes the reference to point back to a specified tiddler instead of the tiddler the macro call is found in. In the example above, we could say reference={{!!title}} and the references would then point back to the actual question tiddler instead.
This can also be used to fix a problem that occasionally arose in the previous version, where if you needed to transclude a tiddler containing TiddlyRemember questions into another tiddler, the source would randomly oscillate between the two since either one looked like it contained the question!\