mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 22:08:48 +01:00
🎨 The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957
This commit is contained in:
parent
30621f6ecf
commit
4fb311de68
3 changed files with 20 additions and 4 deletions
|
|
@ -154,7 +154,7 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
return
|
||||
}
|
||||
|
||||
util.PushReloadDoc(tree.Root.ID)
|
||||
operation.RetData = tree.Root.ID
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,17 @@ func IsUnfoldHeading(transactions *[]*Transaction) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func IsMoveOutlineHeading(transactions *[]*Transaction) bool {
|
||||
for _, tx := range *transactions {
|
||||
for _, op := range tx.DoOperations {
|
||||
if "moveOutlineHeading" == op.Action {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func WaitForWritingFiles() {
|
||||
var printLog bool
|
||||
var lastPrintLog bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue