Hi Rob, I think this is a good place to start: c_ec.extract & helpers.
insertAsLastChild() seems to be the operator but there doesn't appear to be such a thing as insertAsFirstChild() or insertAsNextChild() so I am not sure where to go from here. HTH, Chris On Thursday, June 13, 2019 at 7:30:03 AM UTC-7, Rob wrote: > > I use the Extract command frequently (Ctrl-Shift-D) to create nodes from > body text; very useful command. However, I usually prefer the created node > to be be the first child node, not the last, so I end up having to move the > node to the first position. Is there a way to change the default behavior > or to use a script that does essentially does the same thing as Extract, > but places the node first? > > BTW, I looked in the leoCommands.py file for some clues, but only found a > small menu reference; not sure where else to look. > > Rob... > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/5286a428-c2e5-4bd9-b906-6eda67e8f6a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
