🎨 The backlink panel supports filtering by the document name https://github.com/siyuan-note/siyuan/issues/12985
This commit is contained in:
parent
2da780a04e
commit
597c166c43
1 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Bl
|
|||
if nil != refBlock && p.FContent == refBlock.Content { // 使用内容判断是否是列表项下第一个子块
|
||||
// 如果是列表项下第一个子块,则后续会通过列表项传递或关联处理,所以这里就不处理这个段落了
|
||||
processedParagraphs.Add(p.ID)
|
||||
if !strings.Contains(p.Content, keyword) {
|
||||
if !strings.Contains(p.Content, keyword) && !strings.Contains(path.Base(p.HPath), keyword) {
|
||||
refsCount--
|
||||
continue
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Bl
|
|||
}
|
||||
}
|
||||
|
||||
if !strings.Contains(ref.Content, keyword) {
|
||||
if !strings.Contains(ref.Content, keyword) && !strings.Contains(path.Base(ref.HPath), keyword) {
|
||||
refsCount--
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue