mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Improve emoji search (#11768)
Co-authored-by: mpcjazz <mail@mpcjazz.com>
This commit is contained in:
@@ -117,6 +117,7 @@ func getEmojiConf(c *gin.Context) {
|
||||
"id": "custom",
|
||||
"title": "Custom",
|
||||
"title_zh_cn": "自定义",
|
||||
"title_ja_jp": "カスタム",
|
||||
}
|
||||
items := []map[string]interface{}{}
|
||||
custom["items"] = items
|
||||
@@ -173,6 +174,7 @@ func addCustomEmoji(name string, items *[]map[string]interface{}) {
|
||||
"unicode": name,
|
||||
"description": nameWithoutExt,
|
||||
"description_zh_cn": nameWithoutExt,
|
||||
"description_ja_jp": nameWithoutExt,
|
||||
"keywords": nameWithoutExt,
|
||||
}
|
||||
*items = append(*items, emoji)
|
||||
|
||||
Reference in New Issue
Block a user