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

Simplify document block paths in search results #13364

Closed
cordinGH opened this issue Dec 4, 2024 · 12 comments
Closed

Simplify document block paths in search results #13364

cordinGH opened this issue Dec 4, 2024 · 12 comments
Assignees
Milestone

Comments

@cordinGH
Copy link

cordinGH commented Dec 4, 2024

In what scenarios do you need this feature?

在块引用的时候,对于文档块的路径信息,总感觉有些冗余 重复。
因为文档块本身就能看到文档名,而路径中又重复显示了一次文档名。

所以,或许可以简化一下,让文档块的路径不显示文档名(下图对照)
image

考虑到非文档块依旧需要完整路径,为保持显示上的一致性,可以限定这个特性只工作在 [[ 仅搜索文档 当中
image

Describe the optimal solution

文档块路径去除文档名
当前:笔记本a/文档001
期望:/笔记本a

Describe the candidate solution

No response

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Dec 4, 2024

这样才对:笔记本a/

@cordinGH
Copy link
Author

cordinGH commented Dec 4, 2024

一开始我也是这么想的,但改动之后感觉不太美观,所以就把 / 放到前面了。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 4, 2024

这个 / 不是用来好看的,位置是有意义的

@cordinGH
Copy link
Author

cordinGH commented Dec 4, 2024

能理解您的意思。对此我的想法是,/ 放在前面的话,看起来就和根目录一样了,因此 /笔记本a 语义上就是:根目录下的笔记本a,是他的父级

@TCOTC
Copy link
Contributor

TCOTC commented Dec 4, 2024

笔记本就是根目录了,前面没必要加 /;笔记本后面就是子目录了,所以加 /

笔记本a/ → 笔记本a下的文档

@cordinGH
Copy link
Author

cordinGH commented Dec 4, 2024

好吧,我一直把当前的工作空间视为了根 0.0

@88250
Copy link
Member

88250 commented Dec 4, 2024

(( 中(或者 [[ 不启用仅文档时)的文档应该也要改吧?

@TCOTC
Copy link
Contributor

TCOTC commented Dec 4, 2024

我觉得全局搜索也可以改一下。

如果搜索的是文档,则不显示最后一层文档名;如果搜索的是内容块则显示文档名

@cordinGH
Copy link
Author

cordinGH commented Dec 4, 2024

支持

@88250 88250 self-assigned this Dec 4, 2024
@88250 88250 changed the title 简化块引弹窗中的文档块路径 Simplify document block paths in block ref search list Dec 4, 2024
@88250 88250 added this to the 3.1.15 milestone Dec 4, 2024
@88250 88250 closed this as completed Dec 4, 2024
@88250 88250 changed the title Simplify document block paths in block ref search list Simplify document block paths in search Dec 4, 2024
@88250 88250 changed the title Simplify document block paths in search Simplify document block paths in search results Dec 4, 2024
@cordinGH
Copy link
Author

@88250 好像有个问题,图中圈出来的地方,是否应该显示最后一层?

image

@TCOTC
Copy link
Contributor

TCOTC commented Dec 15, 2024

对 这里要显示

@88250
Copy link
Member

88250 commented Dec 15, 2024

稍后改进,按文档分组时不简化显示。

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

3 participants