Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反链里的容器块按子块简化展现 #1013

Closed
deerainw opened this issue Jan 11, 2021 · 4 comments
Closed

反链里的容器块按子块简化展现 #1013

deerainw opened this issue Jan 11, 2021 · 4 comments
Assignees
Milestone

Comments

@deerainw
Copy link

deerainw commented Jan 11, 2021

内部内容块已经被链接过的容器块在「提及」里应该排除出去,release note 里最后一次提到这个问题是 057,但是看了一下这个问题 059 还是存在的。

image

除了列表块之外,超级块之类的容器块也是同样的问题,容器块的作用在这个地方没法得到体现,因为提及里把容器块再显示一遍确实也没提供什么更多的信息。

我导入的很多笔记被链接的次数比较多,比如六七次,然后「提及」里面一整屏的列表块结果,基本上就是把上方链接里的内容复制了一遍。

列表块的问题困扰了我很长时间,我感觉现在终于把这个处理逻辑梳理清楚了:无论一个内容块有没有被真正链接过,在「链接」或「提及」里都应该显示容器块(列表块和超级块),因为偶尔内容块特别短的时候也许能显示出更多的上下文;但是这个容器块要么出现在链接里,要么出现在提及里,不能两头都显示。

@88250
Copy link
Member

88250 commented Jan 11, 2021

感谢反馈,我们稍后再调整看看,谢谢。

@88250 88250 self-assigned this Jan 11, 2021
@deerainw
Copy link
Author

谢谢,我 P 了一张典型情况下的完成效果图,供参考 😂

反链展示效果

@deerainw
Copy link
Author

补一张删掉上面内容块的:

无内容块

@88250 88250 added this to the 0.6.5 milestone Jan 19, 2021
@88250
Copy link
Member

88250 commented Jan 19, 2021

你好,v0.6.5 通过子块排除父块的逻辑做了简化,即提及中如果出现子块则排除掉所有父块:

image

不过现在的实现上还是有问题,即未连接的父块会被排除(下图方块部分),我这里逻辑上还是有点矛盾。

image

先这样,等过几个版本我们在反链上下文层级 #295 中继续处理了,谢谢。

@88250 88250 closed this as completed Jan 19, 2021
@88250 88250 changed the title 反链里的容器块处理逻辑 反链里的容器块按子块简化展现 Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants