I have recently been working on some custom view content. Whenever I open a tiddler, I can click different buttons to display various information about it, which relies on a state tiddler to manage the display.
I want to automatically clear this state tiddler when the tiddler is closed. I have already figured out the filter expression for the logic, but I am not sure how to use the eventcatcher widget to specifically listen for the tm-close-tiddler message and trigger the action.
[all[tiddlers]prefix[$:/state/node-buttosn/]removeprefix[$:/state/node-buttosn/]] -[[$:/StoryList]get[list]enlist-input[]]