mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 文档树支持 Ctrl+Click 和 Shift+↑/↓ 进行多选 https://github.com/siyuan-note/siyuan/issues/1359
This commit is contained in:
parent
c8680c9fb3
commit
e45a0694bd
4 changed files with 168 additions and 26 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue