mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 文档树支持 Ctrl+Click 和 Shift+↑/↓ 进行多选 https://github.com/siyuan-note/siyuan/issues/1359
This commit is contained in:
parent
0378cf52d5
commit
262e8b3022
2 changed files with 2 additions and 2 deletions
|
|
@ -1032,7 +1032,7 @@ func MoveDocs(fromPaths []string, toPath string) (err error) {
|
||||||
util.PushEndlessProgress(Conf.Language(116))
|
util.PushEndlessProgress(Conf.Language(116))
|
||||||
|
|
||||||
WaitForWritingFiles()
|
WaitForWritingFiles()
|
||||||
fromPaths = util.FilterFromPaths(fromPaths, toPath)
|
fromPaths = util.FilterMoveDocFromPaths(fromPaths, toPath)
|
||||||
pathsBoxes := getBoxesByPaths(fromPaths)
|
pathsBoxes := getBoxesByPaths(fromPaths)
|
||||||
|
|
||||||
toID := strings.TrimSuffix(path.Base(toPath), ".sy")
|
toID := strings.TrimSuffix(path.Base(toPath), ".sy")
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ func NormalizeEndpoint(endpoint string) string {
|
||||||
return endpoint
|
return endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
func FilterFromPaths(fromPaths []string, toPath string) (retFromPaths []string) {
|
func FilterMoveDocFromPaths(fromPaths []string, toPath string) (retFromPaths []string) {
|
||||||
fromPaths = append(fromPaths, toPath)
|
fromPaths = append(fromPaths, toPath)
|
||||||
retFromPaths = FilterSelfChildDocs(fromPaths)
|
retFromPaths = FilterSelfChildDocs(fromPaths)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue