mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
591d65b973
@ -86,6 +86,18 @@ func searchEmbedBlock(stmt string, excludeIDs []string, headingMode int) (ret []
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 添加笔记本名称
|
||||||
|
var boxIDs []string
|
||||||
|
for _, embedBlock := range ret {
|
||||||
|
boxIDs = append(boxIDs, embedBlock.Block.Box)
|
||||||
|
}
|
||||||
|
boxIDs = gulu.Str.RemoveDuplicatedElem(boxIDs)
|
||||||
|
boxNames := Conf.BoxNames(boxIDs)
|
||||||
|
for _, embedBlock := range ret {
|
||||||
|
name := boxNames[embedBlock.Block.Box]
|
||||||
|
embedBlock.Block.HPath = name + embedBlock.Block.HPath
|
||||||
|
}
|
||||||
|
|
||||||
if 1 > len(ret) {
|
if 1 > len(ret) {
|
||||||
ret = []*EmbedBlock{}
|
ret = []*EmbedBlock{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user