Skip to content

Add plugin 计算草稿 v1.0.0 - #629

Open
Code-Agitator wants to merge 1 commit into
ZToolsCenter:mainfrom
Code-Agitator:plugin/calc-draft
Open

Code-Agitator wants to merge 1 commit into
ZToolsCenter:mainfrom
Code-Agitator:plugin/calc-draft

Conversation

@Code-Agitator

@Code-Agitator Code-Agitator commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

插件信息

  • 名称: 计算草稿
  • 插件ID: calc-draft
  • 版本: 1.0.0
  • CLI版本: 1.3.2
  • 描述: 计算草稿纸,记录多步计算,友好且现代的交互界面
  • 作者: Agitator
  • 类型: 新增

本次变更

  • 插件定位: 类似计算稿纸插件,提供更加现代化的UI和交互设计以及更多的高级特性
  • 公式行引用: 编写计算公式时可以通过#id引用公式行,动态联动
  • 跨草稿引用: 可以通过@id#id引用其他草稿中的公式行,动态联动
  • 多步计算: 每行写一个表达式,自动出结果。支持四则运算、幂、取模、常用函数(sqrt/sin/cos/log/abs/round 等)和常量(pi/e)
  • 快捷操作: 几乎所有操作都可以通过键盘来编辑,例如Ctrl + 单击跳转引用位置符合JB家族 Coder的使用习惯
  • 自动补全: 草稿引用/公式引用都可以自动补全,并且支持备注搜索,拼音搜索,非常丝滑

截图 / 演示

more-usage snapshot-1

自检清单

  • plugin.json 的 name / title / version / description / author 字段均已检查
  • 已移除调试日志、未使用文件、敏感信息(.env、token、密钥等)
  • 本次 PR 的 diff 仅涉及 plugins/calc-draft/ 目录
  • 已在本地 ZTools 客户端实际加载并测试过此插件,主要功能正常
  • 同意以仓库声明的开源协议发布此插件

此 PR 由 ztools-plugin-cli 自动管理:每次 ztools publish 基于最新主仓库重建发布分支;打开的 PR 链接保持不变。

- feat: expression parser with #ref extraction and display tokenizer
- fix: correct jsep operator precedence for ^ and %
- feat: evaluator with topo sort, cycle detection, functions, formatNumber
- feat: draft state model with stable seq and palette
- feat: plugin wiring with calc route and empty shell
- chore: gitignore agent tool configs and purge from index
- feat: row list with evaluation, copy cells, spotlight
- fix: stop number click bubbling, color refs by target seq, clear spotlight on escape
- feat: page tabs, row actions, drag reorder, shortcuts
- fix: clear spotlight state on row delete and page switch; stop rename keydown bubbling
- docs: align readme with calc-draft features
- feat: complete CalcDraft with shortcuts, page management, and polish
- optimize: CHANGELOG.md
- chore: set version to 1.0.0
- optimize: 优化字体优化打包体积
@Code-Agitator
Code-Agitator marked this pull request as ready for review September 26, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant