I have a single file wiki which has a big table of contents generated by the toc-selective-expandable
macro.
I have noticed it has a lot of tiddlers named like $:/state/toc/PATH-FROM-MY-TOC
(about 500 so far, but the wiki keeps growing). Judging by their created
and modified
fields, these tiddlers seem to be persistent across saves. As I understand, the purpose of them is to store the open/close state of certain items from the ToC tree. I don’t really need this info to persist across saves, I’m fine with having the ToC fully collapsed whenever I load the wiki.
I can select all these tiddlers with a filter like this:
<$vars regex="^\$:/state/toc">
{{{[is[system]regexp<regex>]}}}
</$vars>
Is it possible to exclude these tiddlers when saving the wiki?