sethyuan / logseq-plugin-tocgen

Generate a TOC of any page anywhere to quickly access the page's content.
MIT License
144 stars 10 forks source link

Hidden feature (or bug) discovered: Moving blocks in TOC hierarchy moves block in original position permanently #51

Closed acsr closed 1 year ago

acsr commented 1 year ago

Today I dragged and dropped by accident a TOC item in a TOC that referenced just a particular block on the page only.

Form: {{renderer :tocgen, ((63988e4a-6886-4ccd-ad6f-c4232c4775ce)), 2}}

Behaviour detected

I did not scan the changelogs or code comments to find it mentioned there.

Nice Part

This feature is not mentioned in the docs but quite useable to restructure large outlines while keeping a birds eye view without collapsing the actual blocks first.

Pitfalls

Suggestion

Reproduce if I am right and include it in the docs!

I love your plugin!

sethyuan commented 1 year ago

Hi @acsr , thanks for the report. This feature is indeed already documented in README, maybe not in a very prominent way.

image

I'm glad you find it useful. Depending where you're dropping the item, you can place the block "before", "after" or "inside of" another block.

BTW, if you find yourself doing a drag and drop by accident or you placed the block wrong, you can always do a normal undo to revert it.