workbench icon indicating copy to clipboard operation
workbench copied to clipboard

Moving multiple blocks with Inbox doesn't maintain tree structure

Open mdroidian opened this issue 2 years ago • 1 comments

Reported by Ekuboh, roam slack

https://www.loom.com/share/f0e96c5ff05e4ba793c74bd5b14c6fcb

Solution:

  • calculate parent blocks
  • move only parent block (children will follow)

https://github.com/RoamJS/workbench/blob/e4c925a0371f71a3aa349e545096ce9a30ac521b/src/features/workBench.ts#L322-L357

mdroidian avatar Oct 11 '23 16:10 mdroidian

Current workaround: If you move them one tree at a time, it will maintain the tree structure. Put your cursor on the first block of the tree, then run the command.

mdroidian avatar Oct 11 '23 16:10 mdroidian