To make this a command (which you can bind to with a key), in
myLeoSettings.leo, make the node @commands, and then under it, a node
"@command insert-node-before". Then bind a key to "insert-node-before"
and you're golden.
Nice script, Fidel. That's exactly what I would have done :)
-->Jake
On 9/22/2013 6:16 PM, Fidel N wrote:
Hey Jkn:
This quick script will do what you need, although Im pretty sure
someone here will update it with something more eficcient =P
c.p.insertAfter()
c.executeMinibufferCommand('goto-next-sibling')
c.executeMinibufferCommand('move-outline-up')
c.executeMinibufferCommand('edit-headline')
c.redraw()
Just run that code (you can make it a button then click it from any
node) and it will do what you need.
On Monday, September 23, 2013 12:07:04 AM UTC+2, jkn wrote:
Hi Edward
(Background - I am experimenting with changing my Leo Key
bindings to make it work more closely to other (lesser ;-)
outliners I am more used to than Leo)
One thing that I think is missing from Leo is a primitive command
'insert headline before current'. I would like to bind 'Insert' to
this rather than ''insert-node', which of course inserts after the
current headline.
I've taken a quick look at def insertHeadline() in
key-handling-notes.txt but I'm not initially confident of making
the necessary additions. Would it be appropriate to raise a
wishlist item for this? Thanks.
Also, whilst I'm looking at the source - can you explain to me
where/how 'key-handling-notes.txt is 'included' as part of Leo? I
can't work this out from an initial skim...
Thanks a lot
Jon N
--
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.