-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table of contents #533
Comments
Hello, personally I prefer to have smaller notes which are structured in the note tree as opposed to long documents structured by headings. But of course this might not be always applicable. Table of contents is currently not supported. It's actually more of a feature in the editing component and adding this is tracked on CKEditor's project. Once they add support for ToC, I'll definitely consider adding it to Trilium. |
Thanks for the quick response, I'll track the CKEditor feature request then! |
Hello, Although nice I find that un-easy to navigate. As you read the underlying notes already (name and content) I guess it would be relatively easy to generate a Table of Content of underlying notes (only names) with correct indentation showing the level in the subtree. This makes navigating/overviewing a subtree relatively easy instead of using the tree. Might be a small enahancement. It will keep the tree for high level navigation with detail navigation for the current subtree in the note itself. If the depth of subtree level could be configured (1 level, 2 or even 3 level) that would be great. And if it could be added manually even better. So a short descriptive note about this subtree followed by a Table of Content. |
it seems theckeditor finished this function: ckeditor/ckeditor5#1942 |
It was closed as duplicate, the real issue is this: ckeditor/ckeditor5#966 |
Hello! Sorry to bump this issue. |
This would be an absolutely killer feature for notes that go on longer than originally intended. Again, love the work you do zadam, thanks for making the wonderful application. |
I believe this can be closed as a duplicate. Feel free to upvote the original request here: ckeditor/ckeditor5#966 |
FWIW I wrote a simple but fully featured ToC widget plugin
https://gist.github.com/antoniotejada/54940b85d456ed3f0e6c99f915b435fe |
That widget is awesome! You should post it to the discussions: https://github.com/zadam/trilium/discussions/new?category=show-and-tell |
Thanks and done! #2799 |
Good stuff @antoniotejada! I'll give it a spin. |
@antoniotejada Thank you!! I have been waiting for this features for years One thing I would like to add suggestion is that,
It renders into
Is it possible to make it automatically adjusts the tab and also configure numbering, like so:
I think this will look cleaner |
Not really inclined to do that, and sounds messy, it's not just checking the next entry, you would need to check the whole table to see that the level is really missing in all entries of the table. Out of curiosity, why do you skip levels like that? |
@antoniotejada
Then along the way adding new header to it
If I don't do that, I would have to edit the entire note from
to
I know this is a non standard way of taking notes, and I'm already satisfied with current plugin. |
Added in 0.53.X |
It would be nice if there was an option to toggle a table of contents for a given text node. It would allow efficient navigation in long, well structured notes.
(recent user, sorry if such a thing already exists and I missed it)
The text was updated successfully, but these errors were encountered: