Skip to content

块引搜索不区分大小写,支持类型前缀转义 #618

Closed
@DabengBa

Description

@DabengBa

你在什么场景下需要该功能? In what scenarios do you need this function?

1 在通过[[或((搜索要引用的内容时, 希望能够忽视英文字符大小写. 目前搜索功能能够实现该功能, 但是引用时不行.
image

2 类似"aa-bb"这样的字符搜索不到
image

Activity

self-assigned this
on Dec 2, 2020
added this to the 0.5.2 milestone on Dec 3, 2020
changed the title [-]搜索功能改进 : 1- 引用时支持模糊搜索(忽视大小写) 2- 正确处理连接符(-_)[/-] [+]改进块引搜索[/+] on Dec 3, 2020
modified the milestones: 0.5.2, 0.5.3 on Dec 4, 2020
88250

88250 commented on Dec 9, 2020

@88250
Member

你好,第二个问题是因为 d 命中了类型前缀过滤,只会在文档名中进行搜索。

changed the title [-]改进块引搜索[/-] [+]块引搜索类型前缀转义[/+] on Dec 9, 2020
changed the title [-]块引搜索类型前缀转义[/-] [+]块引搜索不区分大小写,支持类型前缀转义[/+] on Dec 9, 2020
88250

88250 commented on Dec 9, 2020

@88250
Member

搜索关键字如果以如下字符开头,则启用类型过滤。

  • d 文档块
  • # 标题块
  • * 列表块(包含有序列表块、无序列表块和任务列表块)
  • - 列表项块
  • ` 代码块
  • > 块引用块
  • $ 数学公式块
  • { 超级块
  • p 段落块

比如想要搜索所有包含 Markdown 的标题块,则可以使用 #Markdown 作为搜索条件。如果需要搜索的关键字开头字符在上述列表中,则需要使用 \ 转义。比如想要搜索 doc 关键字,d 会命中文档块过滤,这样实际上搜索的关键字是 oc,需要通过 \doc 转义。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@DabengBa

      Issue actions

        块引搜索不区分大小写,支持类型前缀转义 · Issue #618 · siyuan-note/siyuan