mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 文档树支持 Ctrl+Click 和 Shift+↑/↓ 进行多选 https://github.com/siyuan-note/siyuan/issues/1359
This commit is contained in:
parent
4ee2fa6c0f
commit
e6fa3fc6e3
2 changed files with 3 additions and 2 deletions
|
|
@ -547,6 +547,7 @@ func TryAccessFileByBlockID(id string) (ok bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getBoxesByPaths(paths []string) (ret map[string]*Box) {
|
func getBoxesByPaths(paths []string) (ret map[string]*Box) {
|
||||||
|
ret = map[string]*Box{}
|
||||||
for _, p := range paths {
|
for _, p := range paths {
|
||||||
id := strings.TrimSuffix(path.Base(p), ".sy")
|
id := strings.TrimSuffix(path.Base(p), ".sy")
|
||||||
bt := treenode.GetBlockTree(id)
|
bt := treenode.GetBlockTree(id)
|
||||||
|
|
|
||||||
|
|
@ -1075,8 +1075,8 @@ func filterSelfChildDocs(paths []string) (ret []string) {
|
||||||
for _, fromPath := range paths {
|
for _, fromPath := range paths {
|
||||||
dir := strings.TrimSuffix(fromPath, ".sy")
|
dir := strings.TrimSuffix(fromPath, ".sy")
|
||||||
existParent := false
|
existParent := false
|
||||||
for _, d := range dirs {
|
for d, _ := range dirs {
|
||||||
if strings.HasPrefix(d, fromPath) {
|
if strings.HasPrefix(fromPath, d) {
|
||||||
existParent = true
|
existParent = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue