Auto Save Wiki

59 views
Skip to first unread message

Bob Jansen

unread,
Oct 7, 2020, 12:56:44 AM10/7/20
to TiddlyWiki
Is there a way to Auto Save a wiki file, after say, a specified time period? My trial user has complained of the current method and especially the Leave Page... message which meant nothing to her until I explained it. She has lost several periods of data changes so far and is not happy.

This also might affect or be affected by,  my previous question about not seeing the Leave Page message if I selected a new URL from the Bookmarks Bar.

bobj

Eric Shulman

unread,
Oct 7, 2020, 1:36:28 AM10/7/20
to tiddl...@googlegroups.com
On Tuesday, October 6, 2020 at 9:56:44 PM UTC-7, Bob Jansen wrote:
Is there a way to Auto Save a wiki file, after say, a specified time period?

Yes.  Go to http://TiddlyTools.com/timer.html, and import the TiddlyTools/Time/AutoSaver tiddler (and the required supporting tiddlers).

Note that the AutoSaver is automatically added to the Sidebar but is NOT *enabled* when you first install it.
Use the AutoSaver's "gear" icon to configure the "countdown interval".  The default is 1 hour.
Then press the start button to activate the countdown.

If you save your file with the AutoSaver active, it will remain active when you reload the file.

Here's the documentation from TiddlyTools/timer.html:

Displays a countdown timer in the SideBar that triggers a periodic "file save" action.
Requires: TiddlyTools/Time/CountDownTiddlyTools/Time/TickerTiddlyTools/Time/action-timeout.js
Optional: TiddlyTools/Time/Setup$:/config/TiddlyTools/Time

  • The  button begins the countdown. The input fields automatically update to show the time remaining.
  • The  button stops the countdown. Press  to continue the countdown.
  • While paused, you can change the time remaining in the current countdown. Press  to apply the changes and continue the countdown.
  • The  button stops the countdown and resets the time to use the configured AutoSaver interval.
  • When the countdown reaches zero, a "save file" action is triggered. The specific behavior depends upon which saver method you are using.
  • You will be asked to confirm before the file is saved. You can change this option in the settings.
  • When the file has been saved, a message will appear below the AutoSaver. You can clear this message by clicking on it.
  • Press (gear icon) to change the AutoSaver interval and/or the "confirm before saving" option.
  • Press  to use the new AutoSaver interval. Press  to restore "factory settings" (1 hour)
  • You can re-arrange the placement of the AutoSaver by using drag-and-drop in this tag list: $:/tags/SideBarSegment
 enjoy,
-e

Bob Jansen

unread,
Oct 7, 2020, 1:43:34 AM10/7/20
to TiddlyWiki
Thanks Eric, I will look into this

bobj

TW Tones

unread,
Oct 7, 2020, 3:13:31 AM10/7/20
to TiddlyWiki
Bob,

Is the standard immediate autosave not enough?

See 

$:/ControlPanel > Saving > General



If the wiki is large some people prefer the save on exit and not before, but clearly not your user. 

If they never actually need to save, but they make changes that cause the save to be requested I have other solutions

Regards
Tones
Reply all
Reply to author
Forward
0 new messages