logseq-plugin-move-block icon indicating copy to clipboard operation
logseq-plugin-move-block copied to clipboard

Moving block hierarchy doesn't work

Open garyo opened this issue 3 years ago • 4 comments

Moving a block with sub-blocks to a page doesn't seem to work for me. To repro, create this content in today's journal:

- Block
	- Sub-block
	- Sub-block 2
		- Third level

Also create a page "Test page" with a couple of blocks, to serve as the move target. Then right-click on the main Block, select Cut content and keep ref, to a page "test page". (After can be stay or jump, doesn't matter).

What you'll see:

  • One of the sub-blocks (in my case "Third level" above) gets copied to the Test page, but not the whole hierarchy.

It's the same if you select the whole block and sub-blocks; only the last block gets moved over.

garyo avatar Dec 02 '22 16:12 garyo

I can not reproduce this issue. It works for me. I guess your block content may be special.

vipzhicheng avatar Dec 16 '22 14:12 vipzhicheng

I just clarified the test case. Just paste that exact content into today's journal (or edit with an external app to be 100% certain).

garyo avatar Dec 16 '22 14:12 garyo

The same by me. What more - block without sub-blocks but with empty line under - cannot be moved. And communicate is showed: "cannot move empty block". The problem occures in all last versions - now is in Logseq 0.9.11.

tmark00 avatar Jul 21 '23 13:07 tmark00

Please upgrade and test again. I did some optimization for hierarchy blocks moving.

vipzhicheng avatar May 17 '24 15:05 vipzhicheng