Don't panic. I'm not going to do anything rash.
Imo, there is no need for these two new settings:
- @string unl-status-kind = legacy
- @bool full-unl-paths = True
If these settings must remain, their default values should change to:
- @string unl-status-kind = gnx
- @bool full-unl-paths = False
These settings were essential while working on the big PR. But now most users should use gnx-based unls!
Furthermore, plugins (including Thomas's plugins) can easily ignore (or better, support) gnx-based unls:
p.get_full_legacy_UNL writes legacy unls.
Given a gnx-based unl resolved to position p, the following will "recover" the path list used in old (path-based) unls:
paths = list(reversed([z.h for z in p.self_and_parents()]))
Heh. A similar line appears in p.get_full_legacy_UNL!
Summary
Leonistas should always be using gnx-based unls.
Plugins can easily enforce legacy (path-based) unls if they must.
All questions and comments are welcome. I'm not going to do anything rash.
Edward
I disagree about removing the @string unl-status-kind setting. I get the most value from the status bar when I can see the path of a node. A gnx-based unl tells me nothing useful. If I want to see if the node is in the outline I think it is, I can look at its tab or the title bar of the Leo window. The gnx part is useless for orienting me within an outline. I **really want** to see the path-based expression in there.
As for your expression paths = list(reversed([z.h for z in p.self_and_parents()])),
there is no need to cast it to a list.
...let's have a Leo method to return it. No reason for everybody to roll their own.
On Wed, Jul 5, 2023 at 8:48 AM Thomas Passin <tbp1...@gmail.com> wrote:As for your expression paths = list(reversed([z.h for z in p.self_and_parents()])),there is no need to cast it to a list.This is the second time you have made this mistaken assertion. reversed is a generator:print(reversed(['a', 'b']))<list_reverseiterator object at 0x00000218572299C0>
If these settings must remain, their default values should change to:
- @string unl-status-kind = gnx
- @bool full-unl-paths = False