Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957

Daniela08eaccfef14
diff --git a/kernel/model/outline.go b/kernel/model/outline.go
index 46a4b20b9a..2606e06597 100644
--- a/kernel/model/outline.go
+++ b/kernel/model/outline.go
@@ -139,7 +139,7 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
return
}
- util.PushProtyleReload(tree.Root.ID)
+ util.PushReloadDoc(tree.Root.ID)
return
}
diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go
index 370c819a69..8643b776e8 100644
--- a/kernel/util/websocket.go
+++ b/kernel/util/websocket.go
@@ -216,6 +216,10 @@ func PushClearProgress() {
BroadcastByType("main", "cprogress", 0, "", nil)
}
+func PushReloadDoc(rootID string) {
+ BroadcastByType("main", "reloaddoc", 0, "", rootID)
+}
+
func PushProtyleReload(rootID string) {
BroadcastByType("protyle", "reload", 0, "", rootID)
}