all nodes are being expanded in query list view / query查询出的所有block全部展开显示
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 45k
- Forks
- 2.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 105
Description
What happened?
make a simple query like
{{query [[page name]])}}
and all the blocks it found will be expanded in the table include all the parent and children nodes. even the blocks itself is folded. unlike the "linked references" of a page where the linked blocks are shown in a much more decent way
as an outline note-taking app, all nodes are being expanded in a query table basically results a very awful readability and makes query not that practical
Reproduce the Bug
1, create a page A
2, create a page B
3, write something with children blocks in journal and link them to page B, and collapsed them
4, in page A create a query : {{query (and (between -2d today) [[page B]])}}
5, and all the blocks in the query table are expanded,
6, but copy the same query to page A, the way all blocks display is the same with page A's linked references down
below , so same query, different performance in different page
Expected Behavior
query results get more readable and won't be all expanded
查询结果最好就像页面的反链区一样展示就可以,最多只显示link下面的次级节点,剩下的会自动折叠
Screenshots

如图所示,所有block里包括图片在内的子节点全部被展开显示了,与block实际的折叠展开状态不符,而且手动调整的话重新进入该页面,query依然会恢复原样,无法记忆折叠状态
Desktop Platform Information
mac Monterey 12.1 desktop version 0.61
Mobile Platform Information
No response
Additional Context
另外试了advanced query,就按官方文档里提供的那个最简单的Blocks in 7ds with a page reference of datalog,表现效果是一样的,设置了 :breadcrumb-show也不起作用,:collapsed只针对query自身不针对结果。
但在chrome 网页版0.55里,query不管在哪个page里展现效果都是一样折叠起来的,虽然点击无法展开并且只显示链接所在的那个block,但至少有可读性,而且需要查看上下文的话直接点击圆点聚焦block就行了,所以不清楚是新版做了调整还是原有功能出了bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the query in the issue with nested, collapsed blocks, comparing its table output with linked references and the older web behavior described. Trace how query results render and preserve block folding, then verify that results show only the linked block and limited context, respect collapsed state, and remain readable after reopening the page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100