This branch contains work on the "show-settings-outline" command.  This 
command now works. More work is needed to ensure it is works accurately ;-)


*What you will see*

This command creates a fully functional outline, which may save if you 
like.  

It demonstrates a proposed way of showing settings.  The top level nodes 
are:

- Active settings for <name of the local file> # The .leo file, from which 
the command was executed.
- <name of local file>
- <name of theme file, if any>
- myLeoSettings.leo
- leoSettings.leo

The children of these nodes (except the first node) contain *copies* of all 
the *active nodes* of the @settings tree for each outline.  Active nodes 
are either:

- settings nodes (including children of @data and @outline-data nodes) or
- organizer nodes whose descendants contain settings nodes.

@ignore trees and all other organizer nodes are cleaned away.

In other words, these trees follow the organization of the corresponding 
@settings tree, with unnecessary nodes not shown.

*Note:* settings nodes that are not "active" have headlines starting with 
"INACTIVE".  I think they actually show potentially serious problems, but I 
can't be sure yet.

*To do*

1. The present code finds settings nodes in a dubious, probably buggy, 
manner.

Instead, the settings in effect for any local .leo file are exactly those 
settings present in c.config.settingsDict.  These settings will be 
"allocated" to the various files using the new c.config.getSource method, 
which should guarantee that the allocation is exactly that used by Leo's 
present show-settings command.

2. Per Vitalije's suggestion, there should be a command that writes all 
newly-changed settings nodes to myLeoSettings.leo.

*Summary*

The present command illustrates a proposed organization for the various 
outlines.  The data shown may be incorrect in some cases.

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/b825126b-6fa7-4767-a1ff-c3da5e47c30d%40googlegroups.com.

Reply via email to