How would one go about to move a [sub..]section to a different position in the document structure?
The sectioning commands would have to be changed according to the new parent level.
Is there a program that does that? An editor via drag and drop?
A cli call like this should do it (given that the section numbering is default):
texsectionmove main.tex 3.2 root