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.

If you say, yes, but when we copy from the status bar, we want to get the 
new gnx-based unl, I say fine, but there could be a minibuffer command to 
do that.  In fact, it would be useful to have the context menu for the 
status bar contain separate items for copying either the gnx- or legacy 
path-based UNL of the focused node.

As for your expression paths = list(reversed([z.h for z in 
p.self_and_parents()])), I have two remarks.  First, there is no need  to 
cast it to a list.  [...] returns a list already, as does reversed().  
Second, if that is a serious suggestion then let's have a Leo method to 
return it.  No reason for everybody to roll their own.

On Wednesday, July 5, 2023 at 7:29:35 AM UTC-4 Edward K. Ream wrote:

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

-- 
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/19e4f062-0a3b-49da-a7a6-6f8cc3c8f895n%40googlegroups.com.

Reply via email to