Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions TeXmacs/plugins/lang/dic/en_US/zh_CN.scm
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@
("command" "命令")
("comment" "批注")
("Comment editor" "批注编辑器")
("collaboration" "协作")
("common formats" "常见格式")
("coming soon" "敬请期待")
("commutative diagram" "交换图")
("compact vertical space" "紧凑垂直间距")
("compact" "紧凑")
Expand Down Expand Up @@ -2147,6 +2149,7 @@
("Select binary" "选择插件")
("Select path" "选择路径")
("settings" "设置")
("share" "分享")
("setup printer" "")
("several equations" "多行公式 (eqnarray)")
("alignment equations" "多行公式 (align)")
Expand Down Expand Up @@ -2203,6 +2206,7 @@
("snap distance" "吸附距离")
("snap to pages" "吸附到页面")
("snap" "自动吸附设置")
("social media" "社交媒体")
("solution" "解答")
("solving equations" "解方程")
("songti" "宋体")
Expand Down Expand Up @@ -2655,6 +2659,7 @@
("your language" "使用语言")
("Your membership has expired. Renew to continue using AI, MathOCR, and other member features" "会员已到期,续费后可继续使用 AI、MathOCR 等会员功能")
("Your membership will expire within 7 days. Renew early for more savings" "会员将在 7 天内到期,提前续费享更多优惠")
("zhihu" "知乎")
("zigzag" "之字形")
("zoom factor" "缩放比例")
("zoom in" "放大")
Expand Down
19 changes: 15 additions & 4 deletions TeXmacs/progs/generic/insert-menu.scm
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,20 @@
"Zhihu share requires Qt HTML clipboard support")))
(login)))

(menu-bind insert-zhihu-share-menu
(tm-define (share-coming-soon)
(:interactive #t)
(set-message "Coming soon" "Collaboration"))

(menu-bind share-menu
(group "Collaboration")
("Coming soon" (share-coming-soon))
---
(group "Social media")
("Zhihu" (zhihu-share-current-buffer)))

(menu-bind insert-share-menu
(if (not (community-stem?))
((balloon (icon "tm_share.svg") "Share to Zhihu")
(zhihu-share-current-buffer))))
(link share-menu)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The main Insert icons
Expand Down Expand Up @@ -217,4 +227,5 @@
(if (and (not (logged-in?)) (not (community-stem?)))
(link llm-login-menu))
(if (not (community-stem?))
(link insert-zhihu-share-menu)))
(=> (balloon (icon "tm_share.svg") "Share")
(link insert-share-menu))))
2 changes: 2 additions & 0 deletions devel/221_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ xmake r stem
```
此时应该显示分享按钮

## 2026/04/30 添加子菜单

## 2026/04/27 添加分享图标