On Thursday, May 28, 2020 at 12:33:30 PM UTC-5, Edward K. Ream wrote:

> Thanks for this. I'll take a look.

This is great stuff. The code is difficult, and it seems to work.

To create the paste-as-template command, create the following in 
commands/commanderOutlineCommands.py:

@g.commander_command('paste-as-template')
def pasteAsTemplate(self, event=None):
    c = self
    c.frame.log.clearTab('Log')
    paste_as_template(c, c.p)

A bug: In the do_paste function, change in two places:

v.h = h
v.b = b

To:

v.h = h or ''
v.b = b or ''

One more thing. I realized earlier today that the NodeIndices class should 
have a computeNewIndex method, exactly the same as your gnx function.  I'll 
add this to devel soon.

*Next steps*

You definitely should get full credit for this code. How do you want to 
incorporate it into Leo?

I suggest creating your own branch, and add the wrapper code shown above.  
I've stopped working on the template branch.

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/2b316c2b-095f-4f1d-87fe-c5e5e365a6df%40googlegroups.com.

Reply via email to