mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 Generate file history before converting doc to heading/moving blocks https://github.com/siyuan-note/siyuan/issues/14359
This commit is contained in:
parent
d5d37c9b79
commit
57657b59ea
2 changed files with 4 additions and 13 deletions
|
|
@ -308,6 +308,9 @@ func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {
|
|||
return &TxErr{code: TxErrCodeBlockNotFound, id: id}
|
||||
}
|
||||
|
||||
// 生成文档历史 https://github.com/siyuan-note/siyuan/issues/14359
|
||||
generateOpTypeHistory(srcTree, HistoryOpUpdate)
|
||||
|
||||
var headingChildren []*ast.Node
|
||||
if isMovingFoldHeading := ast.NodeHeading == srcNode.Type && "1" == srcNode.IALAttr("fold"); isMovingFoldHeading {
|
||||
headingChildren = treenode.HeadingChildren(srcNode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue