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 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/CAMF8tS1woLUD0DoYkh%2Bb99AekDfttCY2L8fy91RgnVvny%2Bzh7g%40mail.gmail.com.
