mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 03:50:16 +08:00
🎨 Supports searching database blocks by the view title https://github.com/siyuan-note/siyuan/issues/9348
This commit is contained in:
parent
3c67701681
commit
0014a5eea4
@ -189,6 +189,13 @@ func (s *Search) TypeFilter() string {
|
|||||||
buf.WriteByte('\'')
|
buf.WriteByte('\'')
|
||||||
buf.WriteString(",")
|
buf.WriteString(",")
|
||||||
}
|
}
|
||||||
|
if s.DatabaseBlock {
|
||||||
|
buf.WriteByte('\'')
|
||||||
|
buf.WriteString(treenode.TypeAbbr(ast.NodeAttributeView.String()))
|
||||||
|
buf.WriteByte('\'')
|
||||||
|
buf.WriteString(",")
|
||||||
|
}
|
||||||
|
|
||||||
// 无法搜索到 iframe 块、视频块和音频块 https://github.com/siyuan-note/siyuan/issues/3604
|
// 无法搜索到 iframe 块、视频块和音频块 https://github.com/siyuan-note/siyuan/issues/3604
|
||||||
buf.WriteString("'iframe','video','audio',")
|
buf.WriteString("'iframe','video','audio',")
|
||||||
// 挂件块支持内置属性搜索 https://github.com/siyuan-note/siyuan/issues/4497
|
// 挂件块支持内置属性搜索 https://github.com/siyuan-note/siyuan/issues/4497
|
||||||
|
@ -1339,6 +1339,8 @@ func nSort(n *ast.Node) int {
|
|||||||
return 20
|
return 20
|
||||||
case ast.NodeSuperBlock:
|
case ast.NodeSuperBlock:
|
||||||
return 30
|
return 30
|
||||||
|
case ast.NodeAttributeView:
|
||||||
|
return 30
|
||||||
case ast.NodeText, ast.NodeTextMark:
|
case ast.NodeText, ast.NodeTextMark:
|
||||||
if n.IsTextMarkType("tag") {
|
if n.IsTextMarkType("tag") {
|
||||||
return 205
|
return 205
|
||||||
|
Loading…
Reference in New Issue
Block a user