Hi Daniel How about Delete happens immediately, and there's a transient Undo button? >
Yes, good idea. I think there is a spectrum of possibilities from the "trashcan" suggestion here through to full revision retention for each tiddler. A reasonable first step to allow some experimentation would be to add a hook that is called for each tiddler that is deleted or overwritten: https://github.com/Jermolene/TiddlyWiki5/issues/1064 Best wishes Jeremy. > > Sometimes you want to do a confirmation because the user might not > understand the impact of the action -- e.g. the user clicks a Close button, > but you want to check: "If you close this window, you'll lose the > content!". Those times a pre-action confirmation is often a good idea. > > Other times you want a confirmation to guard against mis-clicks, e.g. the > user clicks Delete (which they likely understand will delete the thing, but > you want to check: "Really delete this?". It's really great for this type > to just do the thing immediately, then offer an Undo.. like this > state-of-the-art ASCII mockup: > > .--------------------------------. > | Tiddler A | > | | > | tiddler A's content | > '--------------------------------' > .--------------------------------. > | title: [_Edited_Tiddler______] | > | content: | > | [ some unsaved ] | > | [ content ] | > | [ ] | > | | > | ( delete ) ( save ) | > '--------------------------------' > .--------------------------------. > | Tiddler B | > | | > | tiddler B's content | > '--------------------------------' > > > > *After the user clicks delete...* > > .--------------------------------. > | Tiddler A | > | | > | tiddler A's content | > '--------------------------------' > > New Tiddler deleted! ( undo ) > > .--------------------------------. > | Tiddler B | > | | > | tiddler B's content | > '--------------------------------' > > > It would mean that there's a state of existence for tiddlers that is > "ghost" or something -- killed but not yet gone to the afterlife. So it's > a big commitment architecturally. > > Cheers > ;Daniel > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
