c3er / mdview

Standalone Markdown viewer
MIT License
83 stars 7 forks source link

Want the Table of Content #25

Closed fireflyoo closed 1 year ago

fireflyoo commented 1 year ago

Lack the function of TOC(Table of Content).

c3er commented 1 year ago

Thanks for filing this issue!

What do you mean? An outline feature like it is offered by VS Code?

Screenshot of VS Code MD outline feature

Please be aware that I won't add any feature to the app that changes the opened file itself, i.e. adding a TOC to the opened file.

If you want an outline, e.g. as a sub window or sidebar or something like that, then I'll see when I find time for implementing this feature.

fireflyoo commented 1 year ago

Yes , Like the outline feature by VSCode

c3er commented 1 year ago

Thanks for the clarification!

Maybe I'm able to implement this feature soon but I won't promise anything.

c3er commented 1 year ago

Short update: this feature is actually not trivial and takes some time. Parts are implemented but it is currently far from usable.

Screenshot of Markdown viewer with TOC
fireflyoo commented 1 year ago

Amazing! I can't wait to try..

c3er commented 1 year ago

It took a whole while and made actually more work than the first version of the whole application😆

The buttons may currently not looking good -- see issue #29. But I don't want to let you wait even longer and just released version 2.6.0 with the new feature.

The TOC is hidden by default. It can be displayed via entries in the "View" menu or by pressing Alt+C (Option+C on macOS) for a single document only or via Alt+Shift+C (Option+Shift+C on macOS) for all documents.

Feel free to open a new issue, if you encounter a problem with this TOC feature or with anything else in the application or if you wish another feature.