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 
<https://github.com/leo-editor/leo-editor/issues/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

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/cadba905-1869-45f5-ba49-8427f6c87638%40googlegroups.com.

Reply via email to