mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Search type filtering supports Audio, Video, IFrame and Widget block https://github.com/siyuan-note/siyuan/issues/10645
This commit is contained in:
parent
c5cc3ff779
commit
4f1013a35e
2 changed files with 40 additions and 5 deletions
|
|
@ -971,6 +971,10 @@ func buildTypeFilter(types map[string]bool) string {
|
|||
s.HTMLBlock = types["htmlBlock"]
|
||||
s.EmbedBlock = types["embedBlock"]
|
||||
s.DatabaseBlock = types["databaseBlock"]
|
||||
s.AudioBlock = types["audioBlock"]
|
||||
s.VideoBlock = types["videoBlock"]
|
||||
s.IFrameBlock = types["iFrameBlock"]
|
||||
s.WidgetBlock = types["widgetBlock"]
|
||||
} else {
|
||||
s.Document = Conf.Search.Document
|
||||
s.Heading = Conf.Search.Heading
|
||||
|
|
@ -985,6 +989,10 @@ func buildTypeFilter(types map[string]bool) string {
|
|||
s.HTMLBlock = Conf.Search.HTMLBlock
|
||||
s.EmbedBlock = Conf.Search.EmbedBlock
|
||||
s.DatabaseBlock = Conf.Search.DatabaseBlock
|
||||
s.AudioBlock = Conf.Search.AudioBlock
|
||||
s.VideoBlock = Conf.Search.VideoBlock
|
||||
s.IFrameBlock = Conf.Search.IFrameBlock
|
||||
s.WidgetBlock = Conf.Search.WidgetBlock
|
||||
}
|
||||
return s.TypeFilter()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue