Save and Continue Edit

132 views
Skip to first unread message

Kevin Kleinfelter

unread,
May 7, 2018, 8:33:24 AM5/7/18
to TiddlyWiki
How would I go about adding a Save-and-continue-editing button?  Or an auto-save-every-60-seconds?

I often open a Tiddler and accumulate data into it throughout the day.  If I get a browser crash or just a twitchy finger clicking the wrong button, I lose my accumulated content.  

I'd like to save work-in-progress, without closing the edit window and losing my insertion point.  I just want to save the work so far, without otherwise changing my state.

TIA

TonyM

unread,
May 7, 2018, 8:42:53 AM5/7/18
to TiddlyWiki
Kevin

Try the  Buttons for the Edit Toolbar Plugin by Thomas Elmiger
  • Save & Close (Done & Close)
  • Cancel & Close (Discard & Close)
  • Save & Keep Open (Done & Reopen)

Save & Keep Open (Done & Reopen) is what you want.

If you use this on a NoteSelf you also retain all versions.

Regards
Tony

Thomas Elmiger

unread,
May 7, 2018, 6:04:54 PM5/7/18
to TiddlyWiki
Hi Kevin

Another plugin I made could also help: Editor Counter https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2FEditorCounter

On the settings tab of the plugin you can activate an option to save every X characters. So whenever you have typed/added or removed X characters, an autosave is triggered. I use it at X=200 and feel rather comfortable with it.

Good luck!
Thomas

Kevin Kleinfelter

unread,
May 7, 2018, 7:10:12 PM5/7/18
to TiddlyWiki
Thank you.  This sounds like exactly what I want.  However, when I try to use it, I don't see that it changes the behavior of my wiki.  (I am using a node.js served wiki.)

Whether it is enabled or not, TW appears to constantly save whatever characters I typed to "Draft of <whatever tiddler>".  If I reload the page, the tiddler does not reflect the changes, but if I edit the tiddler, the "Draft of" does have the content.  If I cancel the edit, the changes are not persisted.

I was expecting auto-save to persist the edits to the non-draft tiddler.

Am I using it wrong?
Tnx
- kevin

Thomas Elmiger

unread,
May 8, 2018, 1:36:19 AM5/8/18
to TiddlyWiki
Ah, o.k. then it is not what you want. It saves the whole wiki (including the draft) – what the Node.js version seems to be doing anyway. It doesn’t update the original tiddler like my buttons do.

PMario

unread,
May 8, 2018, 1:58:55 AM5/8/18
to TiddlyWiki
On Tuesday, May 8, 2018 at 1:10:12 AM UTC+2, Kevin Kleinfelter wrote:
Whether it is enabled or not, TW appears to constantly save whatever characters I typed to "Draft of <whatever tiddler>".

That's intentional.
 
  If I reload the page, the tiddler does not reflect the changes, but if I edit the tiddler, the "Draft of" does have the content.

There are physically 2 versions of a tiddler while editing. The "Draft of" tiddler and the the original tiddler. Once you save the Draft, it overwrites the existing tiddler.

This mechanism is the same with a "browser only" version of TW, where it is the only possible solution to persist "edit-state" between 2 different sessions.
 
  If I cancel the edit, the changes are not persisted.

That's the definition of "Cancel" .. right? ... If I cancel a flight before booking it, I definitely don't want to get a bill.
 
I was expecting auto-save to persist the edits to the non-draft tiddler.

You would have no possibility to easily undo your changes, between 2 sessions.
 
Am I using it wrong?

I'm not sure. ... But you may have expectations, that are different to the existing workflow.

-mario

TonyM

unread,
May 8, 2018, 3:04:45 AM5/8/18
to TiddlyWiki
Kevin,

You make me question what method are you using to save tiddlywiki. Unless you do a download and overwrite every time one of the various savers in needed, in your case you say Node but node should be autosaving for you. When using the buttons I suggested on top of TiddlySevers (node JS version) if I click save but not close, I see the whole wiki saving, (and tiddler) but the moment I hit another key (ie restart changing the tiddler) the save button goes red again.

Check your Control Panel > Saving > Autosaving is set if not already.

Regards
Tony

On Monday, May 7, 2018 at 10:33:24 PM UTC+10, Kevin Kleinfelter wrote:
Reply all
Reply to author
Forward
0 new messages