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

搜索页签 #104

Closed
88250 opened this issue Sep 26, 2020 · 6 comments
Closed

搜索页签 #104

88250 opened this issue Sep 26, 2020 · 6 comments
Assignees
Labels
Milestone

Comments

@88250
Copy link
Member

88250 commented Sep 26, 2020

搜索结果分为两层:

文档块1(匹配 5 )
    内容块1
    内容块2
    ... 展开更多
文档块2(匹配 10 )
    内容块1
    内容块2
    ... 展开更多
@88250 88250 added the Feature label Sep 26, 2020
@Invoker2017
Copy link

搜索加上简单的操作符,如Everything的:
输入 内容A|内容B(含有内容A或内容B)
输入 !内容C (当前结果排除含有内容C)
输入 内容A 内容B(文块内同时含有内容A或内容B)

正则表达式什么的入门太深了,我感觉这个功能用的好足够完成类似Notion的DataBase筛选功能,单纯的搜索还是不支持复杂的数据库。

@Invoker2017
Copy link

可以加一项信息,参考RE的大纲

文档块1(匹配 5 )
内容块上级标题(如果有)(小字)
内容块1
内容块2
... 展开更多

搜到的内容是这样的:

内容块上级标题

(其他不显示在搜索结果)

内容块1

(其他不显示在搜索结果)

@88250
Copy link
Member Author

88250 commented Sep 27, 2020

搜索加上简单的操作符,如Everything的:
输入 内容A|内容B(含有内容A或内容B)
输入 !内容C (当前结果排除含有内容C)
输入 内容A 内容B(文块内同时含有内容A或内容B)

正则表达式什么的入门太深了,我感觉这个功能用的好足够完成类似Notion的DataBase筛选功能,单纯的搜索还是不支持复杂的数据库。

搜索条件会在 #72 中完成。

@wbooooooo
Copy link

1、关于搜索页签,建议可以搜索指定文件夹,或指定文档。
2、搜索结果展示,建议能到段落级别。特别是文档页内搜索。
3、对于同一篇文档的搜索结果,建议按先后顺序排序。

@88250
Copy link
Member Author

88250 commented Dec 5, 2020

#586 (comment)

@deerainw
Copy link

偶然又看到这个 issue,顺手回复一下,在全局搜索内容的时候,Obsidian 的这个默认收起选项真的挺重要的:

image

@88250 88250 added this to the 0.6.1 milestone Jan 8, 2021
@88250 88250 pinned this issue Jan 8, 2021
@88250 88250 unpinned this issue Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants