mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 07:01:48 +01:00
🎨 Improve block ref searching https://github.com/siyuan-note/siyuan/issues/12010
This commit is contained in:
parent
e652434858
commit
afcb666892
2 changed files with 4 additions and 4 deletions
|
|
@ -322,8 +322,9 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int, isSquareBrackets,
|
|||
if "" == keyword {
|
||||
// 查询为空时默认的块引排序规则按最近使用优先 https://github.com/siyuan-note/siyuan/issues/3218
|
||||
|
||||
typeFilter := Conf.Search.TypeFilter()
|
||||
ignoreLines := getRefSearchIgnoreLines()
|
||||
refs := sql.QueryRefsRecent(onlyDoc, ignoreLines)
|
||||
refs := sql.QueryRefsRecent(onlyDoc, typeFilter, ignoreLines)
|
||||
var btsID []string
|
||||
for _, ref := range refs {
|
||||
btsID = append(btsID, ref.DefBlockRootID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue