I want to know if there is a practical way to capture all occasions where a field is added to a tiddler, or the value in any tiddlers field is changed?
- We could all this a “tiddler fields history”
- There are numerous ways to add/change or delete fields but I am wondering if there is a way such as with an event catcher or message catcher widget that could help us do this globally for a wiki?
- The worst case scenario is I would have to add this everywhere I manipulate fields customise buttons, intercept changes in the edit template etc… This is what I am trying to avoid.
- A list of fields that are exceptions to this history may be nominated such as the text field.
[Edited] Update: There appears to be no existing mechanism’s we can leverage, so to address this Original Topic objective I have started to compile a specific solution in this reply and are still open to ideas and alternative ways to achive this.
Background;
I am personally trying to find innovative solutions to “everyday design” needs in tiddlywiki to expose sophisticated solutions using very simple to understand methods. This helps me build even more sophisticated solutions while not hitting cognitively complex and time consuming methods, it also stands to help less experienced users.
It is a result of my research in this area that I have realised if I can “capture all occasions where a field is added to a tiddler, or the value in a field is changed”, or it is deleted, I can introduce some useful features.
- To minimise the impact on the wiki these changes can be logged in a field within each tiddler itself so if the tiddler is deleted so is its “fields history”
- unlike if I used a “global fields history tiddler” I do not need to store the tiddler name where the field change occurs because the history relates only to the current tiddler.
- I would set timestamp=no here so the history mechanism does not interfere with the modified date.
- This idea is also based on an idea that many tiddlers are either;
- Static or don’t change much after creation like code tiddlers
- OR Change a lot, but only within a short lifetime then become dormant or deleted such as a task tiddler.
- OR change a little gradually overtime and there is value being able trace these changes.
- I can see in a multi-use wiki that we may also want to track the user who made such a change.
Edited post script:
- Another possible technical hurdle here is being able to add index or json tiddler entries in a field other than the text field.
Thanks in advanced for your considered response.