Collapse all blocks in linked references

is there a way to make Logseq remember the “collapsed” state of each block in the linked references of a page? Or at least to have them all collapsed by default.

PS. I don’t want to collapse the linked references, but the blocks within them!

  • If you mean the blocks themselves, currently the collapsed state of a block is part of its very data. Thus the state is saved, but it is either collapsed everywhere or nowhere, there is no separate state for each view.
  • If you mean the grouping of the blocks, this is not saved, as the grouping is regenerated on every visit.
  • However, it is possible to define in file config.edn a global collapse level specifically for linked references.
    • Look for option :ref/default-open-blocks-level

I mean, instead of showing all of this, I want Logseq to only show “GN Group” in the linked references


  • Set :ref/default-open-blocks-level 0 and it will show only the root block.
    • Make sure to reopen the page after saving the new value.
  • As for the properties, check your other question.

PS. this config option also affects query results.