AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[FR] Table of contents for documents

Open tio-trom opened this issue 2 years ago • 13 comments

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

tio-trom avatar Sep 24 '23 22:09 tio-trom

@tio-trom Do you mean the outline block?

image

LucasXu0 avatar Sep 25 '23 01:09 LucasXu0

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.

tio-trom avatar Sep 25 '23 01:09 tio-trom

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

LucasXu0 avatar Sep 25 '23 06:09 LucasXu0

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.

tio-trom avatar Sep 25 '23 13:09 tio-trom

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.

emmggi avatar Sep 25 '23 15:09 emmggi

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?

LucasXu0 avatar Sep 26 '23 07:09 LucasXu0

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.

tio-trom avatar Sep 26 '23 12:09 tio-trom

@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.

emmggi avatar Sep 29 '23 13:09 emmggi

I also really need this feature.

YBYCS avatar Dec 14 '23 06:12 YBYCS

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

annieappflowy avatar Dec 16 '23 01:12 annieappflowy

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

Yes, I believe this contributes to efficiency.

YBYCS avatar Dec 16 '23 01:12 YBYCS

Having the table of contents in a panel would make navigation easier than if it was only at the top of the document.

Consider how much easier it is to navigate among pages in Notion given they are displayed in a tree on the left side. If that tree were at the top and scrolled out, you'd have to scroll up to the top every time you wanted to navigate somewhere.

Notion also displays an automatic table of contents on the right.

In the same vein, editors have a "preview" of the file lines in the right pane.

dandv avatar Dec 08 '24 01:12 dandv

Yeah this feature is a must for me especially when dealing with big documents. its the only thing preventing me from migrating form obsidian right now

Yacine-Benali avatar Dec 25 '24 14:12 Yacine-Benali

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 suggest a toggleable sidebar from the right, similar to the current left side bar.

xcpky avatar Feb 18 '25 15:02 xcpky