logseq-toc-plugin icon indicating copy to clipboard operation
logseq-toc-plugin copied to clipboard

Collapsible TOC for Enhanced Usability

Open bob1113 opened this issue 1 year ago • 0 comments

First of all, thank you for maintaining such a great plugin! It has been incredibly helpful for long-page reading in Logseq, and I wanted to contribute an enhancement that I believe will further improve the user experience.

I’ve added a collapsible Table of Contents (TOC) feature that allows users to hide lower-level headers and focus on the main structure of the page, making navigation simpler and more efficient.

New Features

  • Collapsible TOC
    • The TOC is now collapsible, helping users declutter long pages.
  • Customization Options
    • Enable or disable the collapsible TOC based on user preference.
    • Customize the toggle icon for expanding or collapsing sections.
    • Option to hide the toggle icon when not hovering, for a cleaner interface.

Backward Compatibility

  • The new features are backward compatible, ensuring that users who prefer the previous behavior (non-collapsible TOC) can continue using the plugin without any changes required.

I hope you find this feature useful, and I’m happy to make any adjustments based on your feedback! Here is a demo clip showcasing the functionality.

https://github.com/user-attachments/assets/5f2f1ecd-4429-4922-af17-d6539efefc93

bob1113 avatar Sep 17 '24 09:09 bob1113