On Thu, 19 Dec 2013 19:52:11 -0600 Terry Brown <[email protected]> wrote:
> On Thu, 19 Dec 2013 15:50:46 -0800 (PST) > Fidel N <[email protected]> wrote: > > > A > > B > > C > > D > > E > > > > If you want to move D and E to children of A, you can move D up, then C > > will close, so you have to open it and then move E, but if have more > > children of C that you want to move up, it will keep closing, you will have > > to keep "fighting" aganist Leo and open each time you move one up. > > Hmm, so the quickmove.py plugin adds buttons which copy/move/clone the > current node to the node that was active when you created the button. [snip] > I'll have a look at adding that to quickmove.py Well, since quickMove.py is so ridiculously, ah, I mean elegantly, abstracted, that was quite easy to do. So the new bindable commands are: quickmove_keyboard_popup Show a keyboard (arrow key) friendly menu of quick move actions. Set the current node as the target for the selected action. quickmove_keyboard_action Perform the action selected with quickmove_keyboard_popup, moving the current node to the target, or whatever the selected action was. The actions are any of: bookmark to first child bookmark to last child clone to first child clone to last child copy to first child copy to last child jump to link from link to move to first child move to last child So, you use quickmove_keyboard_popup to set the current node as the target for one of those actions. Then you repeatedly use quickmove_keyboard_action to perform the action on the current node relative to the target. For Moving type commands the node selection moves to the next node, it doesn't follow the moved node, which would be unhelpful. So for Fidel's example, with quickmove_keyboard_popup bound to Ctrl-Shift-M and quickmove_keyboard_action bound to Shift-M, you would - select A - Ctrl-Shift-M, choose 'move to last child' - select D - Ctrl-M, D moves to last child of A, selected node becomes *E* - Ctrl-M, E moves to last child of A, done I guess quickMove.py needs a video :-} Cheers -Terry > I think there was a Tk plugin that worked that way, back in the day. > > Cheers -Terry > -- 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.
