Table of contents (TOC) can give an overview of a page and allow easy navigation.
It seems that the necessity of a TOC has been pointed out before, especially for a long page or a page with multiple headlines.
If building a sidebar view of TOC is not easy (although it got a lot of votes), what about a temporary TOC?
Currently, there are two solutions:
-
We can use the toggle
t o
to collapse/expand all blocks.
This gives an overview of a page, but does not allow easy navigation (unless we want to go into a headline block rather than jump to it).
Another downside is that collapsing or expanding all blocks can be extremely slow!!! It can even cause a crash of logseq. -
There is an awesome TOC plugin.
However, to generate a TOC with this plugin, we need several steps: 1. Put the cursor into any line, 2. type/toc
, 3. then hitReturn
".
I am wondering if there are any other methods for generating a temporary TOC?
Would it possible to have a “toggle” shortcut for TOC?