mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve tag panel refresh https://github.com/siyuan-note/siyuan/issues/14593
This commit is contained in:
parent
e24ff7d8c4
commit
10d1735688
2 changed files with 6 additions and 0 deletions
|
|
@ -799,6 +799,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
if "" == n.TextMarkTextContent {
|
||||
unlinks = append(unlinks, n)
|
||||
}
|
||||
|
||||
util.PushReloadTag()
|
||||
} else if n.IsTextMarkType("u") {
|
||||
if !replaceTypes["u"] {
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
|
|
@ -182,6 +182,10 @@ func PushReloadFiletree() {
|
|||
BroadcastByType("filetree", "reloadFiletree", 0, "", nil)
|
||||
}
|
||||
|
||||
func PushReloadTag() {
|
||||
BroadcastByType("main", "reloadTag", 0, "", nil)
|
||||
}
|
||||
|
||||
type BlockStatResult struct {
|
||||
RuneCount int `json:"runeCount"`
|
||||
WordCount int `json:"wordCount"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue