Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/content manager/location view: show items collapsed by default
Adorian Doran298272ec38cb
diff --git a/apps/client/src/widgets/type_widgets/options/content_manager.tsx b/apps/client/src/widgets/type_widgets/options/content_manager.tsxindex 223f1dfd51..fa4498ee20 100644--- a/apps/client/src/widgets/type_widgets/options/content_manager.tsx+++ b/apps/client/src/widgets/type_widgets/options/content_manager.tsx@@ -283,9 +283,12 @@ function LocationList({ pageNote, categories, highlightedTokens }: CategoryListPonReady={NOOP}listOptions={{...LIST_OPTIONS,- // The tree is the point, so nesting is on and every level starts open.hideSubNotes: false,- expandDepth: Number.MAX_SAFE_INTEGER,+ // Collapsed, so the tree is discovered a level at a time rather than arriving as one+ // long indented wall — the group rows carry their item counts, which is the summary+ // expanding would have given. Filtering opens it back up: matches would otherwise be+ // hidden inside collapsed groups, leaving a count with nothing to show for it.+ expandDepth: highlightedTokens ? Number.MAX_SAFE_INTEGER : 0,resolveChildren,// No inline previews: every level starts open here, so previews would push the rows// apart and bury the hierarchy the view exists to show. Hovering a title gives the