Plugins--> Qt only plugins-->@file contextmenu.py-->deletenodes_rclick
also addresses this issue, it converts the list of selected positions to a list of vnodes, and then tries to delete them using c.vnode2allPositions(v) and c.positionExists(pos) to see if they haven't already been deleted. But I suspect that's potentially expensive (calling c.vnode2allPositions(v) all the time) vs. Michael's approach. In the end it would be nice to have apply_to_vnodes(function, vnode_list) with perhaps a wrapper, apply_to_positions(function, position_list) although it might not be possibly to combine behavior appropriate to both copy/paste type ops. and delete in the same interface. Another probably less critical question is how to handle pasting of non-contiguous and / or multi-level sets of selected nodes. But just being able to paste a contiguous set would be a big plus. And... although it makes sense to be able to do all these things based on Marked status, I think it should also be possible to do them based on multiple selected nodes in the tree - being able to manage these nodes as easily as people have come to expect from interfaces like GoogleEarth's places tree and various browser's bookmarks trees is important for data management applications in Leo. Perhaps less important for coding applications, but that's not all that Leo does ;-) 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.
