On Saturday, February 15, 2020 at 5:20:19 PM UTC-6, Mike Hodson wrote:
I've wanted an asynchronous autosave since about 2013... I know I made a bug report about it but was told the design of the program would not allow such.
I don't remember the discussion, but surely there is no clean way to update files asynchronously. The outline contains all the changed data, so updating external files must be done in process containing the outline.
This morning I saw that Leo could (optionally!) auto save in a less disruptive manner. Rather than auto-saving every N1 seconds, Leo could wait until nothing has happened for N2 seconds before auto-saving. In that case, it is likely Leo will be idle for another 1 second ;-)
As noted in another comment, I have just created
#1497 for this. This likely
can be done cleanly. The relevant code is the onIdle function in mod_autosave.py. To make this work, Leo would have to set a flag when a keystroke has been seen. That should be straightforward.
Edward