An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: The backlink panel supports filtering by the block attributes https://github.com/siyuan-note/siyuan/issues/12985
Danielea3f5fa032bf
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.goindex 3f96a8db3e..5e86a11d0d 100644--- a/kernel/model/backlink.go+++ b/kernel/model/backlink.go@@ -571,7 +571,8 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Blif nil != refBlock && p.FContent == refBlock.Content { // 使用内容判断是否是列表项下第一个子块// 如果是列表项下第一个子块,则后续会通过列表项传递或关联处理,所以这里就不处理这个段落了processedParagraphs.Add(p.ID)- if !strings.Contains(p.Content, keyword) && !strings.Contains(path.Base(p.HPath), keyword) {+ if !strings.Contains(p.Content, keyword) && !strings.Contains(path.Base(p.HPath), keyword) &&+ !strings.Contains(p.Name, keyword) && !strings.Contains(p.Alias, keyword) && !strings.Contains(p.Memo, keyword) && !strings.Contains(p.Tag, keyword) {refsCount--continue}@@ -587,7 +588,8 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Bl}}- if !strings.Contains(ref.Content, keyword) && !strings.Contains(path.Base(ref.HPath), keyword) {+ if !strings.Contains(ref.Content, keyword) && !strings.Contains(path.Base(ref.HPath), keyword) &&+ !strings.Contains(ref.Name, keyword) && !strings.Contains(ref.Alias, keyword) && !strings.Contains(ref.Memo, keyword) && !strings.Contains(ref.Tag, keyword) {refsCount--continue}