Skip to content

Releases: gibsonchan-5/fleurdict

1.5.11

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 17 Sep 04:26

1.5.11

新增

  • PDF 右键菜单独立开关:设置 → 外观与快捷键 中新增「PDF 右键菜单」(默认开启),与「PDF 双击查词」彻底解耦
  • 此前两者共用一个开关 —— 关闭双击查词会连带失去 PDF 右键菜单,想在 PDF 里保留右键查词的用户找不到设置入口

变更

  • 📝 「PDF 双击查词」的描述补充说明:只控制双击,不影响右键菜单
  • 🧹 关闭「PDF 右键菜单」后,插件不再接管 PDF 右键事件,完全交还原生菜单,也不再与其它插件争抢该事件
  • 🔁 升级兜底:旧配置若已关闭「PDF 双击查词」且新开关尚未落盘,升级后新开关同步为关闭,避免行为突变

升级说明

  • 新开关默认开启,老用户升级零感知,已有配置不会被覆盖
  • 升级后请重载插件或重启 Obsidian

English

Added

  • Standalone toggle for the PDF context menu: a new "PDF context menu" switch in Settings → Appearance & Hotkeys (on by default), fully decoupled from "PDF double-click lookup"
  • The two previously shared a single switch — turning off double-click lookup also removed the PDF context menu, leaving users who want to keep right-click lookup in PDFs with no way to configure it

Changed

  • 📝 The "PDF double-click lookup" description now states that it only controls double-click and does not affect the context menu
  • 🧹 When "PDF context menu" is off, the plugin no longer intercepts right-click events in PDFs, handing the native menu back completely and no longer competing for the event with other plugins
  • 🔁 Upgrade fallback: if an older config had "PDF double-click lookup" disabled and the new key was never written, the new key syncs to disabled so behavior does not change silently

Upgrade notes

  • The new switch is on by default, so existing users see no change and existing configuration is never overwritten
  • Please reload the plugin or restart Obsidian after upgrading.

1.5.10

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 16 Sep 13:30

修复

  • 修复「加入生词本」偶发报错 TypeError: getMode is not a function
    遍历标签页时不再用 getViewType() === 'markdown' 判断,改为实例判断 + 方法存在性双保险。
    Obsidian 会为后台标签、未激活的标签组创建延迟占位视图(DeferredView),
    它的 getViewType() 同样返回 markdown,却没有 getMode() —— 只要工作区存在未显示的 Markdown 标签页就可能触发。
  • 修复两个连带问题
    • 报错点在欧路同步之前,异常中断导致词只进了本地生词本、没有同步到欧路,提示却显示「加入生词本失败」
    • 遍历在报错处中断,排在后面的标签页生词高亮一次都不会刷新
  • 闪卡复习刷新生词本侧边栏改为遍历全部同类视图 + typeof 能力检测,避免命中未显示的占位视图

变更

  • 高亮刷新失败改为独立兜底(仅输出 console.warn),不再打断「加入生词本」主流程与欧路同步

说明

本次为纯修复版本,无新增功能、无设置项变化、不涉及数据迁移。升级后建议重启或重载 Obsidian。

1.5.9

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 12 Sep 11:40

1.5.9

新功能

  • 🔑 密钥存储位置可切换:设置面板新增「密钥存储」一节,可在 系统钥匙串(推荐)data.json(可随 vault 同步) 之间切换
  • 🔁 切换时密钥自动搬迁,任意时刻只保存一份:切到 data.json 会先落盘再清除钥匙串条目;切回钥匙串会写入并回读校验通过后才抹掉明文
  • ⚠️ 选择 data.json 模式时设置页显示明文警告:密钥将以明文保存并随 vault 同步上传云端

多设备使用说明

  • 🔒 钥匙串模式下,密钥不随 Obsidian Sync / iCloud 等同步工具走(密钥存于系统钥匙串与应用数据目录,均在 vault 之外)——换设备后需在设置中重新粘贴一次
  • 🔄 需要多设备共用密钥的用户,可在设置中切换为 data.json 模式,密钥将随 vault 同步(接受明文代价)
  • 补充说明:1.5.8 的 Release notes 未提及多设备行为,特此补全

升级说明

  • 从旧版本升级无需重新粘贴密钥:data.json 中的明文密钥会在插件加载时自动迁入钥匙串;1.5.8 用户的钥匙串密钥原样保留
  • 升级后请重载插件或重启 Obsidian

English

New

  • 🔑 Switchable secret storage: a new "Secret storage" section in settings lets you choose between the system keychain (recommended) and data.json (syncs with the vault)
  • 🔁 The key migrates automatically on switch and only one copy exists at any time: switching to data.json writes the file first and then clears the keychain entry; switching back writes to the keychain, verifies by read-back, and only then blanks the plain-text field
  • ⚠️ data.json mode shows a warning in settings: the key is stored in plain text and will be uploaded to your sync cloud with the vault

Multi-device notes

  • 🔒 In keychain mode the key does not travel with Obsidian Sync / iCloud (it lives in the system keychain and the app data directory, outside the vault) — paste it once on each new device
  • 🔄 Users who need the key on multiple devices can switch to data.json mode so it syncs with the vault (accepting the plain-text tradeoff)
  • Note: the 1.5.8 release notes did not mention multi-device behavior; this fills that gap

Upgrade notes

  • Upgrading from older versions requires no re-pasting of keys: plain-text keys in data.json migrate to the keychain automatically on plugin load; keys already in the keychain from 1.5.8 are kept as-is
  • Please reload the plugin or restart Obsidian after upgrading

1.5.8

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 12 Sep 10:59

1.5.8

安全与隐私

  • 🔒 API Key 与欧路 Token 改存系统钥匙串(macOS 钥匙串 / Windows 凭据管理器),data.json 中不再保存明文密钥
  • 🔒 自动清理旧版本遗留在 data.json 顶层的明文副本
  • 🔒 密钥输入框改为密码型显示,并关闭浏览器自动填充与拼写检查
  • 🔇 调试日志默认完全关闭,不再向控制台输出查词词条、生词本条目或选中文本
  • 降级安全:系统钥匙串不可用时保留明文,绝不丢失密钥

修复

  • 🐛 修复生词高亮开关字段缺失导致全新安装的用户笔记内高亮默认全部关闭的问题(该问题自 1.4.3 起存在)
  • 🐛 补回设置面板的「生词高亮控制」开关,切换后即时刷新编辑视图与阅读视图

说明

  • 升级后请重载插件或重启 Obsidian,密钥迁移到钥匙串只会在插件加载时执行一次
  • 若设置中的 API Key 显示为圆点即表示密钥完好;若为空,请重新粘贴一次

English

Security & Privacy

  • 🔒 API keys and the Eudic token moved into the system keychain (macOS Keychain / Windows Credential Manager); data.json no longer stores them in plain text
  • 🔒 Legacy plain-text copies left at the top level of data.json are cleaned up automatically
  • 🔒 Key fields are now masked inputs with autofill and spellcheck disabled
  • 🔇 Debug logging is off by default; looked-up words, notebook entries and selected text are no longer printed to the console
  • Graceful degradation: if the keychain is unavailable the plain-text value is kept, so a key is never lost

Fixed

  • 🐛 Fixed missing highlight setting causing in-note vocabulary highlighting to be off by default for fresh installs (present since 1.4.3)
  • 🐛 Restored the "Vocabulary highlighting" toggle in settings; it refreshes editor and reading views immediately

Notes

  • Reload the plugin or restart Obsidian after upgrading — key migration runs once at plugin load
  • If the API key field shows dots, the key is intact; if empty, paste it once again

1.5.7

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 12 Sep 09:30

1.5.7

本次更新为 PDF 阅读场景补齐了与笔记完全一致的查词体验。

新增:PDF 支持

  • PDF 双击查词:在 Obsidian 内置 PDF 阅读器中双击单词即可查询
  • PDF 右键菜单:选中文本后右键即可「查词 / 加入生词本 / AI 翻译 / AI 详解」
  • PDF 生词高亮:生词按熟练度分级着色,翻页、滚动、缩放均能驻留
  • 连字还原:自动处理 PDF 软连字符与跨行断词(exam- + pleexample
  • 独立配色:PDF 采用独立高亮配色,不会影响笔记内高亮观感

新增:设置项

  • AI 详解自定义 Prompt:可覆盖默认提示词,支持 {word} 占位符,并可一键恢复默认
  • PDF 双击查词 / PDF 生词高亮:两个独立开关,可分别关闭

修复

  • 修复 PDF 查词后选区高亮瞬间消失的问题
  • 修复 PDF 中右键菜单被 pdf.js 原生菜单抢占、AI 功能不可用的问题
  • 修复点击查词弹窗内发音图标时弹窗意外关闭的问题
  • 修复设置变更时查词弹窗被级联重建、产生孤儿弹窗的问题

说明

  • 安装方式:从本页下方 Assets 下载 main.jsmanifest.jsonstyles.css 三个文件放入 .obsidian/plugins/fleurdict/ 即可
  • 社区插件商店版本将在审核通过后更新

v1.5.6

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 30 Aug 08:55

更新内容

  • 查词弹窗支持宽度可调(右下角拖拽,双向调整宽高)
  • 查词弹窗移除 max-width 限制,内容自适应
  • 修复查词弹窗拖拽 handler 堆积问题,每次拖拽都能正常响应
  • AI 详解按钮点击后自动关闭查词窗口
  • AI 详解和 AI 翻译窗口支持文本选取复制
  • 去除 AI 详解和 AI 翻译窗口右侧多余滚动条
  • 修复 outsideClickHandler 未声明导致插件加载失败的问题

1.5.5

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 27 Aug 14:38

1.5.5

  • 修复插件卸载后右键菜单 handler 残留问题
  • onunload 中增加 readingModeHandler.unregister() 调用
  • 确保禁用插件或关闭设置时右键菜单 handler 被正确移除

1.5.4

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 27 Aug 14:30

1.5.4

  • 修复查词弹窗需要点击两次才能关闭的问题
  • 改用 document 级别 capture phase 的 mousedown 监听
  • 确保在 Obsidian 的 bubble-phase 处理器之前触发关闭
  • 添加 stopImmediatePropagation 阻止 Obsidian 处理该点击
  • 优化 close 方法,清理 outsideClickHandler 防止重复关闭

1.5.3

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 27 Aug 08:25

1.5.3

  • 新增「阅读模式右键菜单」设置开关,默认关闭
    • 开启后:阅读模式下右键点击单词显示 FleurDict 专属菜单(查词、加入生词本、AI 翻译、AI 详解)
    • 关闭后:恢复系统默认右键菜单行为
  • 移除冗余的「侧边栏显示范围」设置项(已在侧边栏内通过按钮切换)
  • 移除释义截断和展开功能,所有释义完整显示(避免侧边栏滚动跳动)
  • 修复闪卡音标显示不跟随用户美式/英式偏好的问题
  • 存储时同时保存英式和美式音标

1.5.2

Choose a tag to compare

@gibsonchan-5 gibsonchan-5 released this 27 Aug 06:12

1.5.2

  • 移除释义截断和展开功能,所有释义完整显示(避免侧边栏滚动跳动问题)
  • 修复闪卡音标显示不跟随用户美式/英式偏好的问题
  • 存储时同时保存英式和美式音标