1 min

Reduce auto-save interval time

Currently, the auto-save frequency is every 300 seconds, provided a keystroke was press.

Reduce to 150 seconds (2.5 minutes)

OR

Add new power command that works only for the enhanced writing area where an interval in seconds can be supplied.

Implementation

This change/feature was implemented on 22Oct2013.

Instead of hard-coding a new value into splitscreen.js, a variable was added that contained a default value of 300000, which is the interval time listed in milliseconds, which equals 5 minutes.

The default value can be overridden with the autosave command like this:

autosave=60

The command has to start at the beginning of a line, and nothing follows after the numeric value.

The 60 in the above example is the number of seconds, which gets converted to milliseconds within the JavaScript.

To make the new value take effect, hit the "preview" button.

If I removed the autosave command listed above while remaining in the same editing session, then the interval will remain at 60 seconds. To revert back to the default, then I would need to set the autosave to 300. Or save, close out, and re-edit without the autosave command listed.

Anyway, the autosave interval can be shortened or lengthened by the user for a current editing session.

#junco - #resolved

From JR's : articles
209 words - 1285 chars - 1 min read
created on
updated on - #
source - versions

Related articles
Resolved - Fix error when not following any tags - Jun 27, 2013
Resolved - Add keyboard shortcuts to split-screen typing mode - Mar 28, 2014
Resolved - Change name of Web app from Kestrel to something else - Jul 22, 2013
Do not create a hashtag link if tag is all numerics - Aug 07, 2013
Commit to github - 10Oct2013 - Oct 10, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Apr 25, 2024 - 2:29 a.m. EDT