I am working on a method to better handle the tracking of closed tiddlers both for an undo close and history like mechanism, just for recently closed.
I am raising this here in an endeavour to solicit support someone with a deeper understanding of the message/event catcher widgets, and possibly javascript.
The main guidance I need is being faced with multiple messages, capturing the titles of the closed tiddlers in a list field (Prepend last closed) and continue on to issue the original messages which are both singular and multiple tiddler functions.
I expect if you are knowledgeable about catchers your advice may be simple to give.
The thing is the Message and Event catcher widget documentation is more developer oriented and assumes knowledge not documented on TiddlyWiki.com
With your support I hope to make a useful tool and may be able to add to the documentation from a designer perspective, rather than a developer.
I just shared some code which is similar to what you are asking:
It captures the navigate event, records it, and “forwards” it so the navigator widget will still see it. Something similar should work for other events.
I adapted my example from the other thread to record the history of tiddler close events. See it in action at this share site link.
That code only handles the close event but you could add the close-others and close-all. For those you’d need to loop through the StoryList to record the tiddlers which will be closed.
The latter two event handlers would need to loop through $:/StoryList to record the tiddlers.
The 3 action handlers are likely to have some sections of common code. After you write them you can identify the commonalities and factor them out into separate procedures.