🎨 The backlink panel supports filtering by the block attributes https://github.com/siyuan-note/siyuan/issues/12985

This commit is contained in:
Daniel 2024-11-15 17:20:01 +08:00
parent 748a8c82a8
commit 0d3d6df134
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -599,7 +599,7 @@ func matchBacklinkKeyword(block *Block, keyword string) bool {
keywords := strings.Split(keyword, " ")
for _, k := range keywords {
k = strings.ToLower(k)
if strings.Contains(strings.ToLower(block.Content), k) ||
if strings.Contains(strings.ToLower(block.FContent), k) ||
strings.Contains(strings.ToLower(path.Base(block.HPath)), k) ||
strings.Contains(strings.ToLower(block.Name), k) ||
strings.Contains(strings.ToLower(block.Alias), k) ||