Maybe the reverse way would work: a directive in the body that dictates
what the node headline will be:

@headline-from-first-line # of  body

On Tue, Oct 8, 2019 at 3:20 AM Edward K. Ream <[email protected]> wrote:

>
>
> On Tue, Oct 8, 2019 at 2:53 AM The Living Cosmos <[email protected]>
> wrote:
>
>> In generating code, one typically would want the name of the node to be
>> the particular entity you were defining.
>>
>
> True, but automating this won't be easy.  As you will see from
> LeoPyRef.py, I use short prefixes to denote the class of nodes containing
> methods.  For example, "app." for the LeoApp class, and "adoc." for the
> AsciiDoctorCommands class.
>
> For instance, if you had a node per class, then you would not want to
>> manually name each node and then in the body of the node write the same
>> thing.
>>
>
> Hmm.  This might be a good idea.
>
> After I create a lot of methods (for a new class) I'll use a regex
> search/replace (headline only) to set the class's prefix:
>
> Find:  ^(.)
> Replace:  prefix.\1
>
> Edward
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "leo-editor" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/leo-editor/rSg_8qgCbig/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CAMF8tS1woLUD0DoYkh%2Bb99AekDfttCY2L8fy91RgnVvny%2Bzh7g%40mail.gmail.com
> <https://groups.google.com/d/msgid/leo-editor/CAMF8tS1woLUD0DoYkh%2Bb99AekDfttCY2L8fy91RgnVvny%2Bzh7g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CACv_mNR8yawQwGMXWeE5UgQ7-LDRjuDfSZeMFrLC3eE9YcTc%2Bg%40mail.gmail.com.

Reply via email to