feat: Implement Table of Contents (TOC) for editor
Adds a document navigation feature that parses markdown headers and displays them in a side panel.
- Add
TocModelC++ class to parse headings from theQTextDocumentand expose them to QML. - Add
Kirigami.OverlayDrawerinEditPage.qmlto display the TOC structure. - Add a toggle button in the header toolbar to open/close the TOC.
- Implement click-to-navigate functionality enabling jumps to specific cursor positions.
- Configure drawer layout to respect the global header and floating bottom toolbar, ensuring no UI elements are obstructed.
- Add a "Close" button within the drawer for improved mobile and desktop usability.
Video -
