Is it possible to "archive" tiddlers in a single file wiki?

I have a subset of tiddlers that have useful data. They are different compared to the rest of my tiddlers as in that I need them less often, or I might need them in the future. In a more formal way, the probability that I’ll need them in the future is neither 0, nor 1, but it’s closer to 0 than to 1.

The most brutal way to separate them is to export them to another, “archive” wiki, and delete them from the original one.

But if I wanted to keep them in the original wiki, yet make them not show up in filter results, are there any tricks for doing this?

I could tag them all with a special tag, then explicitly exclude them in filters, but this also means I’d have to modify all the already existing filters, and I don’t like this perspective.

There is a way:

  1. Filter them out and export them to a single JSON file.
  2. Delete (brutally) those tiddlers.
  3. MAKE A COPY OF JSON FILE and Rename copy as a TXT file.
  4. Import that TXT file. -It will be one single tiddler. Contents (text field) will be searchable.
  5. Should you want to hide that tiddler, give a title prefixed with: $:/ (as I’m sure you know).

You will have the backup JSON file on your disk. But if you would like to take an additional step of being able to re-export to individual tiddlers from the new single-text archive tiddler you’ve created do this:

  1. Create a cusom JSON (raw text) exporter -see: https://tiddlywiki.com/#Creating%20a%20custom%20export%20format
  2. Follow these steps:
  • Create a tiddler with the following fields:
    – ‘‘tags’’: [[$:/tags/Exporter]]
    – ‘‘description’’: Description of this exporter: JSON (raw text) file
    – ‘‘extension’’: .json)
  • Set the following content:
\define renderContent()
{{{ $(exportFilter)$ ||$:/core/templates/plain-text-tiddler}}}
\end
<<renderContent>>

The variable exportFilter contains a filter defining which tiddlers should be exported.

Try this plugin

https://tiddlywiki.com/static/Trashbin%20by%20Mohammad.html

Cheers
CB

Just rename thoses tiddlers with a $:/archive/ prefix.
They will not be visible in the classical research, and you still can find the with the explorer tab in the more sidebar.

Any $:/ prefix will do the trick as it will be interpreted by Tiddlywiki as a system tiddler.

Nice :+1:

And to rename many tiddlers at once, I guess I can use TW-Commander.

Yes.
And to personalize a bit your wiki, you can create a copy of the explorer tiddler named for example $:/my/MoreSideBar/Archive, tag it with $:/tags/MoreSideBar or $:/tags/SideBar and in the text field type <<tree "$:/archive/">> and you have your own tab listing your archived tiddlers…

$__my_MoreSideBar_Archive.json (185 Bytes)

Enjoy.