vipzhicheng / logseq-plugin-move-block

A Logseq plugin help you copy or cut blocks to anywhere you want.
https://www.vipzhicheng.com/logseq-plugin-move-block/
Other
47 stars 6 forks source link

Moving block hierarchy doesn't work #13

Open garyo opened 1 year ago

garyo commented 1 year ago

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:

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

vipzhicheng commented 1 year ago

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

garyo commented 1 year ago

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).

tmark00 commented 11 months ago

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.

vipzhicheng commented 1 month ago

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