AppFlowy
AppFlowy copied to clipboard
[FR] Table of contents for documents
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 Do you mean the outline block?
I mean something like Zettlr has:
Where the Headings become "chapters" and when you click one it scrolls to it. If you know what I mean.
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
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.
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.
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?
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.
@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.
I also really need this feature.
@YBYCS , did you mean having the outline floated on a separate panel?
@YBYCS , did you mean having the outline floated on a separate panel?
Yes, I believe this contributes to efficiency.
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.
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
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.