mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
🎨 文档树支持 Ctrl+Click 和 Shift+↑/↓ 进行多选 https://github.com/siyuan-note/siyuan/issues/1359
This commit is contained in:
parent
02a912aba0
commit
db414990aa
2 changed files with 1 additions and 13 deletions
|
|
@ -1012,12 +1012,7 @@ func MoveDocs(fromPaths []string, toBoxID, toPath string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
if "/" == toPath {
|
||||
// 移动到根目录下时不需要根据目标路径去重,所以这里传入一个不可能存在的随机笔记本名称
|
||||
fromPaths = util.FilterMoveDocFromPaths(fromPaths, ast.NewNodeID())
|
||||
} else {
|
||||
fromPaths = util.FilterMoveDocFromPaths(fromPaths, toPath)
|
||||
}
|
||||
fromPaths = util.FilterSelfChildDocs(fromPaths)
|
||||
pathsBoxes := getBoxesByPaths(fromPaths)
|
||||
|
||||
// 检查路径深度是否超过限制
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue