Autosave functionality does not appear to work

68 views
Skip to first unread message

Terrence “My Money Magick” Brannon

unread,
Nov 22, 2023, 2:22:45 AM11/22/23
to leo-editor
I installed Leo via
     git clone --depth=500 --no-single-branch https://github.com/leo-editor/leo-editor

Then checked out the devel branch:  
 
PS C:\code\leo-editor> git checkout devel
Already on 'devel'
Your branch is up to date with 'origin/devel'.


Then installed the deps:

    pip install --editable .

Then ran Leo via:

PS C:\code\leo-editor> python -i
Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct  2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import leo
>>> leo.run()


I then navigated to Settings -> open LeoSettings.leo

HOWEVER it actually opens a leoSettings.leo not LeoSettings.leo file in
c:\code\leo-editor\leo\config

I set the autosave interval to 3 seconds and then made a small change to the node
"About this file, leoSettings.leo"

and 30 seconds later, it still has not saved the file.


Leo Log Window says:

Leo Log Window
Leo 6.7.6-devel, devel branch, build 0ff3604934
2023-11-20 19:22:58 -0600
Python 3.12.0, PyQt version 5.15.2
Windows 11 AMD64 (build 10.0.22621) SP0
Invalid language code for Enchant 'en-US'
Using "en_US" instead
Use @string enchant_language to specify your language
read outline in 0.19 seconds


I am attaching the file leoSettings.leo from c:\code\leo-editor\leo\config

leoSettings.leo

Thomas Passin

unread,
Nov 22, 2023, 8:36:38 AM11/22/23
to leo-editor
On Wednesday, November 22, 2023 at 2:22:45 AM UTC-5 terrence...@gmail.com wrote:

I then navigated to Settings -> open LeoSettings.leo

HOWEVER it actually opens a leoSettings.leo not LeoSettings.leo file in
c:\code\leo-editor\leo\config

I set the autosave interval to 3 seconds and then made a small change to the node
"About this file, leoSettings.leo"

and 30 seconds later, it still has not saved the file.

Without commenting on the autosave matter, don't go changing leoSettings.leo.  That can change with new releases and your changes will get lost.  Put your changes into myLeoSettings.leo.  They will override any settings of the same name in leoSettings.leo.

Thomas Passin

unread,
Nov 22, 2023, 8:44:05 AM11/22/23
to leo-editor
I believe you need to enable the mod_autosave.py plugin before those settings will take effect.  Add a line to the  @enabled-plugins node in myLeoSettings.leo:

mod_autosave.py

Then restart Leo.

If the node doesn't exist, copy it from leoSettings.leo and make your change.

Edward K. Ream

unread,
Nov 22, 2023, 9:57:52 AM11/22/23
to leo-e...@googlegroups.com
On Wed, Nov 22, 2023 at 7:44 AM Thomas Passin <tbp1...@gmail.com> wrote:
I believe you need to enable the mod_autosave.py plugin before those settings will take effect.  Add a line to the  @enabled-plugins node in myLeoSettings.leo:

mod_autosave.py

Then restart Leo.

If the node doesn't exist, copy it from leoSettings.leo and make your change.

Thanks, Thomas, for your help on this issue.

Edward
Reply all
Reply to author
Forward
0 new messages