GitMurf / obsidian-drag-and-drop-blocks

Drag and Drop blocks to move, copy and create block references.
81 stars 6 forks source link

Issues with dragging empty lines #29

Open dcoales opened 2 years ago

dcoales commented 2 years ago

I have a set of lines like so:

This is text block 1

This is text block 2

This is text block 3
This is text block 4

I realise that I have two blank lines between block 1 and block 2 and none between block 3 and block 4 so I drag the second blank line from between 1 and 2 and and drop it between 3 and 4 and the result is the following where line 2 and the blank line below it appear to have disappeared:

This is text block 1

This is text block 3
This is text block 4
dcoales commented 2 years ago

Interestingly, I then tried to drag the result to the end of another note and got a message that I had tried to drop on an invalid drop zone so the drag had been cancelled and the text changed to:

This is text block 1

This is text block 2

This is text block 3
This is text block 4

This is the same as the start with only the blank line I dragged missing.

GitMurf commented 2 years ago

@dcoales the explanation was very good, so thanks for that... but I cannot re-create your issues. See my video below which I think operates exactly as you wanted, correct?

Can you please record a video of your issue(s) in action because I need to be able to re-create exactly what is happening in your situation. Thanks!

https://user-images.githubusercontent.com/64155612/139108007-bf698bbb-fef1-4033-9abc-97ea705fcfbb.mp4

dcoales commented 2 years ago

I've tried again and I don't get quite the same error but it still behaves oddly. I've attached the original file and a video 2021_10_27.md

https://user-images.githubusercontent.com/19651447/139136951-ba51c444-9561-4e7d-98c1-da3cabd8ec02.mp4

.