Logseq/How To/Collapse Linked References By Default
Properties
- tags
- Logseq, Diataxis/How To
How To Collapse Linked References By Default in Logseq
tldr
- Change Logseq/config.edn/:ref/linked-references-collapsed-threshold
- This setting determines the number of linked references that should trigger "collapsed by default" behavior. This feature was originally added because some pages had way too many references to render efficiently.
- Change it from default:
:ref/linked-references-collapsed-threshold 50 - to
:ref/linked-references-collapsed-threshold 0to collapse by default. - Then restart logseq.
- Change Logseq/config.edn/:ref/linked-references-collapsed-threshold
Overview
- This guide shows you how to configure Logseq to automatically collapse linked references when they exceed a certain threshold
- Useful for pages with many linked references that can make navigation difficult
- Helps maintain a cleaner interface by showing only the most recent or relevant references by default
Prerequisites
Steps
1. Open Logseq Settings
2. Access Custom Configuration
3. Locate the Linked References Setting Logseq/config.edn/:ref/linked-references-collapsed-threshold
4. Set the Collapse Threshold
5. (Optional) Configure Block Expansion Level Logseq/config.edn/:ref/default-open-blocks-level
6. Save and Restart
Troubleshooting
- Setting not found: If you can't find the
ref/linked-references-collapsed-thresholdline, add it manually to yourconfig.edn - No effect after restart: Ensure the syntax is correct (no extra spaces, proper colons)
- Linked references still expanded: Check that you saved the file and restarted Logseq completely
- Setting not found: If you can't find the
Related