Hi all,
I am working on improvements to my TiddlyTools AutoSaver, and I’ve run into an odd problem that I can’t figure out…
I want to get the list of tiddlers that will be saved when the core tm-save-wiki
message is processed.
This list is defined by the <<saveTiddlerFilter>>
macro in $:/core/save/all
, which has the following contents:
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]]
-[status[pending]plugin-type[import]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]]
-[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5.html}}
When I try to get the contents of that macro by using the following code:
<$importvariables filter="$:/core/save/all">
saveTiddlerFilter is: <$text text=<<saveTiddlerFilter>>/><br>
</$importvariables>
The text of the macro definition is blank! This is also the case if I try to retrieve the list as a variable, using:
<$importvariables filter="$:/core/save/all">
<$set name="tids" filter=<<saveTiddlerFilter>>>
saveTiddlerFilter is: <$text text=<<tids>>/><br>
</$set>
</$importvariables>
Any thoughts as to why this isn’t working?
-e