mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 17:04:07 +01:00
🎨 Support ignore search results https://github.com/siyuan-note/siyuan/issues/10089 https://github.com/siyuan-note/siyuan/issues/11830
This commit is contained in:
parent
b73fa77f2b
commit
992586e04a
2 changed files with 15 additions and 2 deletions
|
|
@ -321,7 +321,9 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int, isSquareBrackets,
|
|||
|
||||
if "" == keyword {
|
||||
// 查询为空时默认的块引排序规则按最近使用优先 https://github.com/siyuan-note/siyuan/issues/3218
|
||||
refs := sql.QueryRefsRecent(onlyDoc)
|
||||
|
||||
ignoreLines := getRefSearchIgnoreLines()
|
||||
refs := sql.QueryRefsRecent(onlyDoc, ignoreLines)
|
||||
for _, ref := range refs {
|
||||
tree := cachedTrees[ref.DefBlockRootID]
|
||||
if nil == tree {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue