[WIDGET] Outline/ToC widget #2799
-
I updated #533 (comment) with a simple ToC Widget I wrote, @sigaloid suggested I post it here too:
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 23 replies
-
@antoniotejada I think it's great, although I may be a bit biased ;) |
Beta Was this translation helpful? Give feedback.
-
I updated to a revision with a few comments about headings nested inside elements (ie inside tables) and malformed html. The short story is that the widget doesn't try to make those right (there may not be such a thing as "right" anyway), the TOC will probably be wrong and the navigation broken, but it shouldn't crash. I added a .js extension to this revision to get syntax highlighting but unfortunately github thinks it's a new file and it shows as one deleted file and one added file instead of the diffs: |
Beta Was this translation helpful? Give feedback.
-
Love this widget! This is really useful. 😃 Better if it could support scrolling in read-only mode (of which content will be under |
Beta Was this translation helpful? Give feedback.
-
Small aesthetical update to embolden the TOC entry on hover |
Beta Was this translation helpful? Give feedback.
-
There are two bugs with splits I need to fix:
Splits are probably another minor reason to put the TOC under the tree, since (when the second bug doesn't happen) they both change when you change to a different split and makes it clear that the outline is for the active split not for the rightmost split. |
Beta Was this translation helpful? Give feedback.
-
Updated
|
Beta Was this translation helpful? Give feedback.
-
Deleted gist, moved to https://github.com/antoniotejada/Trilium-TocWidget and added scroll to the table of contents. |
Beta Was this translation helpful? Give feedback.
-
This widget is really awesome! I have been struggling with ToC for a very long time! |
Beta Was this translation helpful? Give feedback.
-
Hey, this widget is fantastic. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your work on this and other widgets! Big fan. One question on the current implementation:
The thing is my personal workflow consists on many small notes that don't require ToC, so it's a wasted space on screen. However, some huge notes require ToC. If this particular workflow would be supported without tinkering manually with the divs and hiding them in my personal CSS, that would be amazing. Thank you very much! EDIT: I guess making it collapsible would also solve it for me. |
Beta Was this translation helpful? Give feedback.
@antoniotejada I think it's great, although I may be a bit biased ;)