Push to child

27 views
Skip to first unread message

Daniel Rairigh

unread,
Aug 15, 2012, 8:43:53 AM8/15/12
to leo-e...@googlegroups.com
As I work to migrate my existing code and notes into Leo, it seems to me that it would be really handy to be able to select a block of body text and "push" it into a child node. Is there a quick/efficient way to do this?
Currently I select the block, cut it, Cltr+Insert, Enter, Paste, Ctrl+H, Type the title

Thank you,
   Daniel

Terry Brown

unread,
Aug 16, 2012, 9:48:38 AM8/16/12
to leo-e...@googlegroups.com
Yes, there's extract (Ctrl-Shift D)

extract (Ctrl+Shift+D)
++++++++++++++++++++++

Create child node from the selected body text. 1. If the selection
starts with a section reference, the section name become the child's
headline. All following lines become the child's body text. The section
reference line remains in the original body text. 2. If the selection
looks like a Python class or definition line, the class/function/method
name becmes child's headline and all selected lines become the child's
body text. 3. Otherwise, the first line becomes the child's headline,
and all selected lines become the child's body text.

Daniel Rairigh

unread,
Aug 15, 2012, 10:56:21 AM8/15/12
to leo-e...@googlegroups.com
Awesome! That is just what I needed.

Thank you.

 
On Thursday, August 16, 2012 9:48:38 AM UTC-4, Terry wrote:


Yes, there's extract (Ctrl-Shift D)

extract (Ctrl+Shift+D)
++++++++++++++++++++++

Create child node from the selected body text. 1. If the selection
starts with a section reference, the section name become the child's
headline. All following lines become the child's body text. The section
reference line remains in the original body text. 2. If the selection
looks like a Python class or definition line, the class/function/method
name becmes child's headline and all selected lines become the child's
body text. 3. Otherwise, the first line becomes the child's headline,
and all selected lines become the child's body text.

Reply all
Reply to author
Forward
0 new messages