🎨 文档树支持 Ctrl+ClickShift+↑/↓ 进行多选 https://github.com/siyuan-note/siyuan/issues/1359

This commit is contained in:
Liang Ding 2022-11-03 14:27:17 +08:00
parent c8680c9fb3
commit e45a0694bd
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 168 additions and 26 deletions

View file

@ -545,3 +545,14 @@ func TryAccessFileByBlockID(id string) (ok bool) {
}
return true
}
func getBoxesByPaths(paths []string) (ret map[string]*Box) {
for _, p := range paths {
id := strings.TrimSuffix(path.Base(p), ".sy")
bt := treenode.GetBlockTree(id)
if nil != bt {
ret[p] = Conf.Box(bt.BoxID)
}
}
return
}