Folding is dynamic in Panda, which means that’s not a fixed ranged of text. When you fold a header you fold everything until the next header that has the same level or less. In your example you’re moving an H2 after other H2s, making the text that was in their section part of the section you’re moving.
Let us make a visual example, this is the starting state:
## First (...)
## Second
More Text
Then you move ## First (...) after ## Second:
## Second
## First (... + More Text)
Now More Text is part of the ## First section and it’s moved inside the fold.
I understand what you’re trying to do (moving a section as a unit), but that’s not possible with the move row up/down when there is folding.
What you can do is select the whole section (without folding) and use the same command, which will only move the section and won’t include anything else.
We’re thinking about allowing drag’n drop in the ToC to allow easier section reordering
Pleas try it out in slow motion, it’s very messy and confusing as it is now.
Maybe block move function on folds, if not possible to move them as a unit.
What do you think?
This bug is even more serious than it seemed in the former video,
here is a new video showing that all text passed by the move is lost, only headings are left: