Skip to content

3.0.13

Latest

Choose a tag to compare

@uuq007 uuq007 released this 14 Aug 18:54

中文

新增

  • 自定义标注颜色扩展至最多 10 色:设置 → 颜色自定义中可逐个新增标注颜色(原有 5 色基础上最多再加 5 个),每个新增颜色支持修改色值与显示名、支持删除;删除颜色后已使用该色的标注显示不受影响,重新加回后原色值与显示名自动恢复;菜单、侧边栏筛选中的颜色圆点自动换行,不会因颜色增多而变形
  • 颜色快捷标注命令:为每种颜色注册「标注选中文本」命令,可在设置 → 快捷键中绑定,选中文字后按快捷键立即完成高亮标注;支持弹窗已打开(连同已输入的批注一并保存)、编辑器内选区、阅读模式选区等多种场景;增删颜色或修改显示名后命令列表即时更新,无需重载插件

改进

  • 添加标注菜单交互优化:菜单弹出后光标自动落进批注输入框,直接敲键盘即可输入;点击菜单外区域菜单不再消失(可通过右上角 × 关闭);菜单打开期间笔记区原选区保持高亮显示,关闭后消失
  • 设置搜索适配:适配 Obsidian 1.13+ 声明式设置 API,全部设置项(含自定义颜色)现可被 Obsidian 的设置搜索检索到;1.13 之前的版本自动回退原有设置界面,行为不变
  • 界面语言检测改用 Obsidian 官方接口,不再直接读取 localStorage

修复

  • 修复标注模式下带 ../ 相对路径(如 ![](../images/x.png))的图片提示「找不到图片」无法显示的问题;纯文件名、子目录、![[双链]] 及外部图片不受影响
  • 完成 Obsidian 官方插件审核的全部检查项,告警清零

内部改进

  • TypeScript lib 补齐至 ES2019,修复类型检查告警;UI 元素创建统一改用 Obsidian 官方 DOM 助手(createDiv / createSpan);obsidian 类型依赖固定为 ^1.13.1

完整变更: 3.0.12...3.0.13


English

Added

  • Custom annotation colors expanded to 10: add up to 5 more annotation colors in Settings → Color customization (on top of the original 5). Each added color supports editing its value and display name, and can be removed; annotations using a removed color keep displaying normally, and re-adding it restores the previous value and name. Color dots in menus and the sidebar filter wrap automatically instead of getting squashed
  • Quick annotate commands per color: each color now has an "Annotate selection" command that can be bound to a hotkey — select text, press the hotkey, and it's instantly highlighted. Works with the popup open (pending note text is saved together), with editor selections, and with reading-mode selections. The command list updates immediately after adding/removing colors or renaming them, no plugin reload needed

Improved

  • Annotation menu interactions: the note input is focused automatically when the menu pops up, so you can start typing right away; clicking outside the menu no longer closes it (use the × button instead); the original text selection stays highlighted while the menu is open
  • Settings search: adopted the Obsidian 1.13+ declarative settings API, so all settings (including custom colors) are now searchable in Obsidian's settings search; versions before 1.13 automatically fall back to the original settings UI with unchanged behavior
  • Interface language detection now uses Obsidian's official getLanguage() instead of reading localStorage directly

Fixed

  • Fixed images with ../ relative paths (e.g. ![](../images/x.png)) failing to display in annotation mode with a "not found" message; plain filenames, subfolder paths, ![[wikilinks]], and external images were unaffected
  • Resolved every remaining check item from the official Obsidian plugin review

Internal

  • Bumped TypeScript lib to ES2019 to fix type-check warnings; unified DOM element creation with Obsidian's createDiv / createSpan helpers; pinned the obsidian type dependency to ^1.13.1

Full changelog: 3.0.12...3.0.13