OneMore icon indicating copy to clipboard operation
OneMore copied to clipboard

Please add a refresh option to Section Table of Contents (TOC)

Open JoeKays opened this issue 1 year ago • 4 comments

Problem to Solve

Thanks for adding Section TOC in #56. Unfortunately it seems that there is no way to update an existing TOC when pages are added/removed.

New Feature/Solution

It would be great to have a refresh button to update the TOC, similar to the one already existing for the Headings TOC within a page.

Thank you so much for your work on this addin, it's great and has already saved me a ton of time and nerves!

JoeKays avatar Apr 01 '24 12:04 JoeKays

You can always recreate the ToC page... Not optimal, I understand, especially if you add custom content to the page. So I'll keep this here and take a look when I have some free cycles.

Thanks for using OneMore!

stevencohn avatar Apr 01 '24 12:04 stevencohn

Part 1 implementation completed, added section/notebook refresh and refactored page toc to prepare for part 2. Part 2 will add more control of page TOC placement, especially when there are multiple outline containers on the page.

A new limitation will be added to restrict page TOCs to exactly one per page.

stevencohn avatar Jul 29 '24 13:07 stevencohn

Personally I create new Notebook ToCs and date them, then I can flick back through them over time and see what changed (e.g. copy and paste into excel and do a bit of excel magic) - having a refresh button would be cool as well.

jasonjac2 avatar Jul 29 '24 17:07 jasonjac2

This new implementation is smart enough to do either. You can add a section and/or notebook TOC page. When you try it again, it will ask if you want to update the existing one or add a new one.

EDIT: note that the section/notebook TOC pages "live" in the current section, so this "update" prompt will only look in the current section. Each section can contain their own scoped section/notebook TOC pages.

stevencohn avatar Jul 29 '24 17:07 stevencohn