mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +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
|
|
@ -175,13 +175,6 @@ func NormalizeEndpoint(endpoint string) string {
|
|||
return endpoint
|
||||
}
|
||||
|
||||
func FilterMoveDocFromPaths(fromPaths []string, toPath string) (retFromPaths []string) {
|
||||
fromPaths = append(fromPaths, toPath)
|
||||
retFromPaths = FilterSelfChildDocs(fromPaths)
|
||||
retFromPaths = gulu.Str.ExcludeElem(retFromPaths, []string{toPath})
|
||||
return
|
||||
}
|
||||
|
||||
func FilterSelfChildDocs(paths []string) (ret []string) {
|
||||
sort.Slice(paths, func(i, j int) bool { return strings.Count(paths[i], "/") < strings.Count(paths[j], "/") })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue