- This is brilliant. Bunch of my myLeoSettings.leo stuff is no longer needed with dockable panes for body and outline; and it remembers setting too. Plus, the default look is very nice
- Went to LeoVue site and only one word. *Wow*. Installed the CDN version on laptop as well and put it under local nginx. So good that I actually don't use any of the render stuff that I used to do before.
- Now there is a blue bar that shows the opened files - under window title bar, and above menus. I usually have only one file open and this takes away premium vertical space in my laptop - how do I get rid of that? When I had multiple files open, I could right click on one of them and do some "detach" to get it out for that file - but I want this to be permanently hidden. FWIW, I also keep icon-bar always hidden to save space - which seems to be remembered in this version than me having to start leo with such a setting.
Overall awsome stuff - rarely do one get so thrilled to see software so nicely advanced and still true to its core in a short time.BTW, one greedy need -> I tried various directives like @clean, @auto etc to include another .leo file in my outline. Doesn't work. Any chance of that ever getting implemented?
Two use cases I can think of are:
- I am trying to convert different people to use Leo and they have their own leo files. We share those over git or shared folder. Having an ability to import also allows individual contribs to larger outlines.
- It also helps in keeping the left side outline pane a bit more manageable. On large outlines, there is too much vertical scrolling to keep focus. This can also be solved by giving some option to collapse everything outside current node to one single ellipsis/plus sign as well.
Back to learning new leo then :)
Quite often, I used to forget to invoke 'update-ref-file' before 'git commit'. So, I always add one button node with the headline '@button n-save @key=Ctrl-s', and in the body I put at least the following code:
c.save()
# the following is only to remove unknownAttributes which can be
# automatically regenerated so that they don't polute shared file
for v in c.fileCommands.gnxDict.values():
if not hasattr(v, 'unknownAttributes'): continue
if tuple(v.u.keys()) in ((), ('icons',)):
del v.unknownAttributes
# now we can save the public part of this outline to the shared Leo file
c.fileCommands.save_ref()
c.frame.tree.declutter_update = True # signal to regenerate icons on the
next redraw
After reloading Leo, whenever I press Ctrl-s to save the outline, shared
outline is also saved.
HTH Vitalije
For sharing Leo outlines, I suggest using three commands set-reference-file, update-ref-file and read-ref-file.
Quite often, I used to forget to invoke 'update-ref-file' before 'git commit'. So, I always add one button node with the headline '@button n-save @key=Ctrl-s', and in the body I put at least the following code:
c.save()
# the following is only to remove unknownAttributes which can be
# automatically regenerated so that they don't polute shared file
for v in c.fileCommands.gnxDict.values():
if not hasattr(v, 'unknownAttributes'): continue
if tuple(v.u.keys()) in ((), ('icons',)):
del v.unknownAttributes
# now we can save the public part of this outline to the shared Leo file
c.fileCommands.save_ref()
c.frame.tree.declutter_update = True # signal to regenerate icons on the
next redraw
After reloading Leo, whenever I press Ctrl-s to save the outline, shared
outline is also saved.
-matt
For sharing Leo outlines, I suggest using three commands set-reference-file, update-ref-file and read-ref-file.Very interesting! I guess I wasn't paying attention when it came up before. In the docs there's a bit in the FAQ about this feature (https://leoeditor.com/FAQ.html#how-can-i-customize-settings-for-a-particular-external-file), but it's missing a script. Is this next bit the same thing?