With the release of TiddlyWiki 5.4.0 the new Background Actions
stand to resolve a few outstanding needs of my own and the community.
Here are few ideas that come to mind to inspire, and criticise me if needed.
The example given on tiddlywiki.com is one of the examples. Rather than display the story list every time it changes we could construct some conditional actions to respond both on open and close of tiddler, perhaps even with their own subfilter.
The ability to trigger actions on particular tiddlers, when opened and subsequently closed allows one to do such things as;
- Log the open time, log the close time and compute the time it is open in the story. Some time management applications can use this. Avoids asking for an independent start/end button.
- Perhaps we can start a timer on close, to reopen the tiddler within a given period. but beware people don’t like being pestered. However sometimes like spaced repetition we are asking to be pestered.
- We could trigger a timer to save the wiki in 5 mins, allowing multiple changes to be made before using a times save, rather than autosave that is a little more brutish especially on large wikis.
- In the mean time you may rely on local storage in case your computer powered off.
- It will now be possible to log when specific tiddlers are opened, this allows one to automate the opening neglected tiddlers, those not opened in some time.
- We can selectively respond to particular tiddlers when opened such as setting the currentProject when you open a project, perhaps after saving all tiddlers relating to the last project so they can be loaded when you return to that project.
- You could always throw a message when a project has not outstanding tasks or other useful metrics.
- Perhaps finally we can prompt for a decryption code and re-encrypt on close with tiddler level encryption.
- Perhaps one may be the wiki sits idle from last change, force a save (when it does not need interactions) this also permits a manual and automatic logout process to be forced on the wiki for applications where we need house keeping, sync or other actions on end of use of a wiki, something that is not so easy.
Perhaps there would be some value sharing code patterns to achieve the above on tiddler open/closed, and timer related features.
The above only responds to changes in the story list. Please share possibilities you can think of with the community especial with other filters.