From 262e8b30225c108b2f575e4873c0a30e302ebdab Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 3 Nov 2022 18:50:18 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=87=E6=A1=A3=E6=A0=91=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20`Ctrl+Click`=20=E5=92=8C=20`Shift+=E2=86=91/?= =?UTF-8?q?=E2=86=93`=20=E8=BF=9B=E8=A1=8C=E5=A4=9A=E9=80=89=20https://git?= =?UTF-8?q?hub.com/siyuan-note/siyuan/issues/1359?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 2 +- kernel/util/path.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 8bacdb3a7..6ac1fd0c4 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -1032,7 +1032,7 @@ func MoveDocs(fromPaths []string, toPath string) (err error) { util.PushEndlessProgress(Conf.Language(116)) WaitForWritingFiles() - fromPaths = util.FilterFromPaths(fromPaths, toPath) + fromPaths = util.FilterMoveDocFromPaths(fromPaths, toPath) pathsBoxes := getBoxesByPaths(fromPaths) toID := strings.TrimSuffix(path.Base(toPath), ".sy") diff --git a/kernel/util/path.go b/kernel/util/path.go index c05f1f517..54dad6677 100644 --- a/kernel/util/path.go +++ b/kernel/util/path.go @@ -175,7 +175,7 @@ func NormalizeEndpoint(endpoint string) string { return endpoint } -func FilterFromPaths(fromPaths []string, toPath string) (retFromPaths []string) { +func FilterMoveDocFromPaths(fromPaths []string, toPath string) (retFromPaths []string) { fromPaths = append(fromPaths, toPath) retFromPaths = FilterSelfChildDocs(fromPaths) return