$:\z-trash\tiddler-name
$:/commander/trash-bin
JSON tiddler$:/commander/trash-bin
$:/commander/trash-bin
deletedTrash bin
Another idea would be to develop a method to move tiddlers into a json tiddler one of these would be on delete to $:/trash this mechanisium would allow trash to be saved out and deleted or imported bach in.
A related mechanisium would be to select one or more tiddlers inside a json and restore it perhaps even using a revised import mechanisium.
A single tiddler to bundle multiple tiddlers would be good for trash handing, intentional bundling, import and export, multiple tiddler clipboards, macro, plugin and template stores and more. Thus to solve one problem we facilitate a lot more opportunities.
Regards
Tony
Thanks for the endorsement.
Mohammad,
When you change the name, you will probably need to add a timestamp in case another tiddler with the same name is subsequently deleted. You will probably also need to change the names of the other fields because they might have some functionality in the wiki. For example, there could be a system tag like $:/tags/Macro that would still be active in the deleted tiddler.
Also, I don't think you need to list all the deleted tiddlers in a tiddler - just tag them with $:/tags/Trash, for example, and they can then be easily listed as required.
Anyway, I think you've come up with a good suggestion that should not be too hard to implement.
Regards,
Mal
My version control plugin uses a similar technique to what you are proposing, but the end result is a bit different. It depends on the original tiddler still existing to provide the interface for showing the saved versions.
There is also JD's version control plugin (sorry, I'm replying by mobile phone, so it's a bit difficult to provide a link) which saves a new version every time you edit a tiddler.
Either of these could provide some code to achieve a trash bin mechanism.
Regards,
Mal
Noteself also has version control. Perhaps the new local storage plugin could be adapted to do versons. This would have the advantage you could easily back out of a large change.
Just food for thought, but maybe too big a reach.
Tony
Just speculation.
Tony
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a2040275-fcf3-45ef-882a-1c031fe6dab1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Many thanks for your comments.
Would renaming tags be an option?
$:/tags/Stylesheet => $:/trash/$:/tags/Stylesheet
Just a thought
Thomas
Decode sounds like good idea but can we use a variation of the import mechanisium to extract tiddlers because this can also handle overwrites.
Regards
Tony