If you have tiddlers in your wiki named something like $:/level_1/level_2 or $:/level_a/level_b, then the tree macro generates a hierarchical tree like this:
level_1
level_2
level_a
level_b
I’m wondering if there are any tricks to get the macro to include missing tiddlers as well? For example say that somewhere in my wiki I also had a link to a tiddler $:/alpha/beta, but had not actually created the tiddler. Could I get the tree macro to show something like the following?
To do this, you’ll need to hack the tree macro. But since you don’t want to interfere with future upgrades, better to clone $:/core/macros/tree and call it something else. Then change tree to tree2 and invoke as <<tree2>> .
The code below worked for me. Mostly everywhere that it said “shadows+tiddlers” I changed to “shadows+tiddlers+missing” . Also, added
[<__prefix__>addsuffix<__chunk__>is[missing]]
to the leaf-node macro’s filter at the top. And of course changed tree to tree2 .