Releases: lanbinleo/ex-editor
Release list
0.4.2
0.4.2 — 回退 :has 选择器改动
English TL;DR: Reverts the
button:has(.ex-btn-icon)→ class-selector change introduced in 0.4.1, which regressed button layout. The stylesheet and button code are restored byte-for-byte to the state shipped and user-accepted in 0.4.0. No other changes.
修复
- 回退 0.4.1 中
:has→ex-icon-btn类选择器的改动:按钮布局恢复原状(styles.css与src/view/sidebar.ts还原至 0.4.0 状态) - 社区目录的
:has告警按「有意保留」处理:该选择器仅作用于侧边栏内部小范围子树,且此写法随 0.4.0 通过真机验收
0.4.1
0.4.1 — 社区目录审核反馈修复
English TL;DR: Release-hygiene update for the Obsidian Community directory submission: manifest description rewritten (no "Obsidian", ends with a period), the legacy read-only archive removed from the repository (it tripped the directory's static analysis without being part of the build), a
:has()selector replaced with a plain class, and releases are now built and attested by GitHub Actions from source with the committed lockfile. No functional changes.
修复
- manifest 描述重写:移除 "Obsidian"(目录上下文已隐含)、以半角句号结尾、动词开头
- 移除仓库内的
legacy/writingbuddy/旧项目存档:目录审核会静态扫描全仓库,存档代码的告警(如onunloaddetach leaf、直接设样式)被误报为插件问题;存档不参与构建,已删除(历史提交仍可查阅) styles.css以类选择器ex-icon-btn取代button:has(.ex-btn-icon),避免:has广谱失效的性能告警- 发布改为 GitHub Actions(
.github/workflows/release.yml):从源码 + lockfile 构建、三绿校验、manifest 版本与 tag 一致性校验、生成工件构建来源证明(artifact attestation)后附产物
无功能变化;插件行为与 0.4.0 完全一致。
0.4.0 — M3 修改层次与指令重写
ExEditor v0.4.0 — M3 修改层次与指令重写
English TL;DR: This release adds three proofreading intensity levels, instruction-based passage rewriting with a streaming word-level diff preview, multi-provider LLM support (DeepSeek / GLM / OpenAI-compatible) with per-provider API keys encrypted via the system keychain, snapshot backups, and single-transaction batch accept.
新增
- 检查强度三档:错别字(最小修改)/ 病句(默认)/ 润色(深度措辞句式),头部下拉切换并持久化
- 按指令重写:输入要求(如「压缩到 50 字以内」)→ 流式改写 + 词级红删绿增 diff 实时预览 → 确认应用;应用前自动快照,单事务一次 Ctrl+Z 可撤销
- 范围统一:段落/选中/全文选择器为检查与改写共用,默认「选中」并持久化
- 多提供商模型服务:DeepSeek / 智谱 GLM / OpenAI 预设 + 自定义 OpenAI 兼容服务,可增删切换;每家独立 API 密钥,桌面端经 safeStorage 加密落盘;支持从
/models拉取模型列表点选 - 快照备份与恢复:自动快照到
.exeditor/backups/(目录镜像笔记结构,按篇保留上限),批量接受/改写/恢复前必先快照 - 批量接受:全部建议合并为单个编辑器事务,一次 Ctrl+Z 完整撤销,失效项自动跳过
- 多任务并行检查:同文件可并发多个检查任务,任务区逐行显示进度、可单独取消
修复与打磨
- 词级 diff(
Intl.Segmenter中文分词),建议卡片与改写预览不再出现字符碎片 - 首次改写「满江红」修复:空输出不渲染 diff,尾随删除自动剥离
- 取消链路修复:流式取消不再静默重发不可取消的非流式请求
- 改写输出净化:剥离模型复述的定界标签与代码栅栏
- 93 项单元测试,build / test / lint 全绿
安全协议(不变)
模型只报「原文片段 + 改法」,插件在文中唯一定位后才生效;frontmatter、代码块、公式、双链等保护区域绝不改写;原文变化即标记失效丢弃——宁可漏改,不可错改。
安装
下载下方 main.js、manifest.json、styles.css 三个文件,放入 <vault>/.obsidian/plugins/exeditor/ 后在设置中启用。需要 Obsidian 1.7.2+ 与任一 LLM API Key(DeepSeek / GLM / OpenAI,密钥仅存本地)。