Suppose we have
* Parent1
** Child1
and that our point is at Child1
. Is there a way to programmatically move Child1
to be a sibling above Parent1
, as follows:
* Child1
* Parent1
?
EDIT: The algorithm proposed in the comments fails when centered on Child1
(since it takes Child2
along with it):
* Parent
** Child1
*** Subchild
** Child2