AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
57.51k stars 3.77k forks source link

[FR] Table of contents for documents #3521

Open tio-trom opened 1 year ago

tio-trom commented 1 year ago

Description

Would be very useful to have a table of contents based on the Headings of a document. This way you can structure a document better. This can be added to a right pane.

Impact

For long documents it is essential to be able to jump to "chapters", that can be represented with "headings" in markdown.

Additional Context

No response

LucasXu0 commented 1 year ago

@tio-trom Do you mean the outline block?

image

tio-trom commented 1 year ago

I mean something like Zettlr has: 2023-09-25_03-50

Where the Headings become "chapters" and when you click one it scrolls to it. If you know what I mean.

LucasXu0 commented 1 year ago

Where the Headings become "chapters" and when you click one it scrolls to it. If you know what I mean.

I believe the outline block is precisely what you're looking for, but it's currently displayed on the page instead of in the sidebar.

https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/efc27b34-f542-466f-b7ef-673753997a47

tio-trom commented 1 year ago

Ahhh ok...yes that's what I meant, but positioning it like that makes it less efficient if you want to have a quick access you have to always scroll up. Would make more sense in a separate tab or at least a scroll to top icon somewhere.

emmggi commented 1 year ago

It makes a lot more sense to me, from a practical standpoint, to have it in a panel. A block would be useful when exporting to a PDF or similar.

LucasXu0 commented 1 year ago

Would make more sense in a separate tab or at least a scroll to top icon somewhere. Sounds reasonable.

I see. @tio-trom @emmggi so do you prefer to display the characters on the panel or the sidebar rather than in the document?

tio-trom commented 1 year ago

Would make more sense in a separate tab or at least a scroll to top icon somewhere. Sounds reasonable.

I see. @tio-trom @emmggi so do you prefer to display the characters on the panel or the sidebar rather than in the document?

I think it makes a lot more sense. It is helpful to jump to sections in a document. If you put it at the top you always have to scroll up to then jump to certain sections.

emmggi commented 1 year ago

@LucasXu0 I'm not sure about the design. I think having a separate panel for outline that can be toggled on/off makes most sense.

YBYCS commented 10 months ago

I also really need this feature.

annieappflowy commented 10 months ago

@YBYCS , did you mean having the outline floated on a separate panel?

YBYCS commented 10 months ago

@YBYCS , did you mean having the outline floated on a separate panel?

Yes, I believe this contributes to efficiency.