Search for duplicate blocks

Due to old logseq sync versions, I currently have some duplicated blocks on my logseq graph. Is it possible to search for all of them and select which ones I want to keep.

Some blocks are “mostly” duplicate like for example a task marked both as DONE and as TODO.

Short answer, no. You need strict criteria to decide whether two blocks should be considered duplicates or not. And even then, you may still want to keep both.

1 Like

I know, but berhaps there’s some kind of GUI that shows me block sorted by percentage of coincidence, like there are programs that show you “duplicated” photos (and then you decide, based on its attributes and looks, what to keep)

Yeah I think some sort of GUI thing would have to be built and I think that would probably be quite a lot of work I’m afraid.

So full disclosure I don’t think I could do this myself but…

Would it be possible to search for blocks whose /block:content is the same?

And then they might have a different marker (TODO or DONE) but the content itself would be the same.

Then group by content to find those similar blocks.

That might not work however if the TODO marker is treated as part of the content as well as a marker separately.