On Sun, Feb 22, 2009 at 7:47 AM, Kent Tenney <[email protected]> wrote:

>
>
> To review, we are discussing:
>
> - capability to register a node with an external file, allowing
>  editing the file from Leo, adding no sentinels to the external file.


Yes.  File:Open will create @edit nodes.

>
> - offer the option of parsing the external file into nodes which
>  reflect the structure of the content


I think the user can get this simply by changing @edit to @auto and saving.
The first write will just write the entire node, so there is no possibility
of changing the file.  The next time the @auto node is read, Leo will do the
import as usual.  In particular, whitespace or other import problems may
result, as usual, in an @ignore directive being inserted.

- offer the option of not parsing the external file, it's entire content
>  is in the body of the @auto <filename> node


That's what @edit does.

>
> What if a button named 'Parse' would toggle the file
> between 'all in one node' and 'reflect the structure of the file'


Hmm.  In effect, the button would simply change @edit to @auto.  This would
work, I suppose, provided @edit nodes are *written* using the @auto
algorithm.  Whether writing @edit or @auto, an @others directive would be
needed if the root node has any descendants.

But this is a minor feature.  In essence, I think @edit as a synonym for
@slurp gives us just about everything.

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to