> I guess the complete list of possible post action foci would be
>
> - Node that you operated on (or next node if it was a move)
> - Node after the node you operated on (the current *intended* behavior)
> - Destination node, the newly created one, possibly in another outline.
>
> But perhaps with the @setting set the current behavior is what you
> want, apart from the move down to the next node?
I should really live with it for a while before asking for tweaks, but ...
I think I want something like
> c.quickMove.to_other(unl, cut=False, follow=False) # copy
'follow=False' means
> - Node that you operated on (or next node if it was a move)
That would offer 'stash this node before I change it'
>
>> - is there an API to drive this from @command and @button nodes?
>
> g.app.db['_quickmove']['global_targets']
>
> is the list of
>
> {'name': 'Things to do for proj. X',
> 'unl': '/home/tbrown/projx.leo#Notes-->Todo'}
>
> entries
>
> so
>
> name = "GGL ToDo"
> for i in g.app.db['_quickmove']['global_targets']:
> if i['name'] == name:
> unl = i['unl']
> break
> c.quickMove.bookmark_other(unl) # bookmark
> c.quickMove.to_other(unl, cut=False) # copy
> c.quickMove.to_other(unl, cut=True) # move
>
> ahem, just tested that and it works, but because of the select next
> node behavior it actually bookmarked the selected node to a different
> outline, then copied the next node to that outline, then moved the next
> node to that outline - usually you wouldn't call all three forms in
> succession :-)
>
> Cheers -Terry
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/leo-editor?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.