A curious observation, #1

19 views
Skip to first unread message

jkn

unread,
Jan 4, 2023, 3:14:56 PM1/4/23
to leo-editor
A curious (to me) observation:

A little while ago, and in Leo, I saved a copy of my ~/.leo/myLeoSettings.py to a
local network-available location. I wanted to make this centrally available for instances
of Leo running on other computers.

Today, I wanted to make a change to the ~/.leo/myLeoSettings.py fil on this local machine.
I did the following (I don't claim this is the most efficient workflow):

- via the menu: File | Open Leo Specific File | myLeoSettings.py
- edit the file (to add an @command node, as it happens)
- save the file
- exit Leo and restart

To my puzzlement the command wasn't working, and 'show-commands' didn't list it.

After a fair bit of investigating I realised the issue. File | Open Leo Specific File | myLeoSettings.py  was not opening the file in ~/.leo, but the network-located file!

This surprises me not a little. Is there some 'Most Recently Used' feature being applied to myLeoSettings.py here?

Cheers, J^n

Thomas Passin

unread,
Jan 4, 2023, 6:11:02 PM1/4/23
to leo-editor
ISTR that (in the code) you can tell a file open dialog to open at a specific directory, at least on Windows.  Maybe that's it.  It might not be the Most Recently Used list but some other location that's stored, not that I know anything specific.
Reply all
Reply to author
Forward
0 new messages