Skip to content

Releases: PandaNocturne/obsidian-quick-zoom

1.0.11

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 16:44

English

🐛 Fixes

  • Restore the top zoom navigation bar that disappeared after 1.0.7: render header DOM with createElement again, because CodeMirror panel documents may not provide createDiv / setCssProps
  • Read the document title from editorViewField as in 1.0.7, and wait for plugin bootstrap before painting headers on already-open notes

中文

🐛 修复

  • 修复 1.0.7 之后顶部缩放导航栏消失的问题:顶栏 DOM 改回 createElement,因 CodeMirror 面板所用 Document 不一定提供 createDiv / setCssProps
  • 文件标题改回通过 editorViewField 读取(与 1.0.7 一致),并在插件启动完成后再刷新已打开笔记的顶栏

1.0.10

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 12:27

English

🐛 Fixes

  • Harden process env access and zoom-state store pruning typing to clear remaining TypeScript-eslint unsafe access/call warnings

⚙️ Improvements

  • Add getSettingDefinitions() with getControlValue / setControlValue so settings appear in Obsidian 1.13+ settings search, while keeping display() for older app versions

中文

🐛 修复

  • 强化进程环境变量读取与缩放状态清理的类型安全,消除剩余 TypeScript-eslint unsafe access/call 警告

⚙️ 改进/优化

  • 新增 getSettingDefinitions(),并通过 getControlValue / setControlValue 绑定设置服务,使设置可出现在 Obsidian 1.13+ 设置搜索中;同时保留 display() 以兼容旧版本

1.0.9

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 12:03

English

🐛 Fixes

  • Fix Obsidian review Error for setCssProps by switching to CSS custom properties (--zoom-outline-*) and applying layout in styles.css
  • Align Plugin.onload / onunload with Obsidian's void signatures to clear Promise-return warnings

⚙️ Improvements

  • Replace deprecated editorViewField and activeLeaf with editorInfoField / getMostRecentLeaf
  • Replace setImmediate with window.setTimeout for safer scheduling
  • Properly await nested feature load / unload promises
  • Remove console logging and harden test-plugin message typing

中文

🐛 修复

  • 修复 Obsidian 审核对 setCssProps 的 Error:改为仅设置 CSS 自定义变量(--zoom-outline-*),由 styles.css 负责实际样式
  • 将 Plugin.onload / onunload 调整为 Obsidian 要求的同步签名,消除 Promise 返回警告

⚙️ 改进/优化

  • 用 editorInfoField、getMostRecentLeaf 替换已弃用的 editorViewField、activeLeaf
  • 用 window.setTimeout 替换 setImmediate,提升兼容性
  • 正确 await 嵌套 feature 的 load / unload
  • 移除 console 日志,并加强测试插件消息处理的类型安全

1.0.8

Choose a tag to compare

@PandaNocturne PandaNocturne released this 04 Oct 11:45

English

🐛 Fixes

  • Resolve Obsidian community review errors by removing banned @typescript-eslint/no-explicit-any disables and using proper types
  • Stop assigning styles directly; use Obsidian setCssProps / show() instead

⚙️ Improvements

  • Prefer Obsidian createEl helpers over document.createElement
  • Use window.setTimeout / window.clearTimeout and .instanceOf() for popout-window compatibility
  • Remove default command hotkeys to avoid conflicts
  • Replace CSS :has with an explicit class for better performance
  • Drop unnecessary console logging on load/unload

🔐 Security

  • Add GitHub artifact attestations for release assets (main.js, styles.css, manifest.json)

🔧 Dependencies

  • Remove unused mkdirp and refresh package-lock.json

中文

🐛 修复

  • 修复社区审核 Error:移除禁用的 no-explicit-any eslint-disable,改为正确类型
  • 不再直接赋值 element.style,改用 Obsidian 的 setCssProps / show()

⚙️ 改进/优化

  • 使用 Obsidian createEl 系列 API 替代 document.createElement
  • 使用 window.setTimeout / window.clearTimeout 与 .instanceOf(),兼容弹出窗口
  • 移除默认快捷键,避免与其他插件或 Obsidian 内置快捷键冲突
  • 用明确 class 替代 CSS :has,减轻选择器性能问题
  • 移除加载/卸载时的非必要 console 日志

🔐 安全更新

  • 为发布资源添加 GitHub artifact attestations

🔧 依赖更新

  • 移除未使用的 mkdirp,并更新 package-lock.json

1.0.7

Choose a tag to compare

@PandaNocturne PandaNocturne released this 25 Sep 04:47

English

🐛 Fixes

  • Fix crash when restoring zoom state before the CodeMirror zoom field is attached (e.g. after switching notes); safely read the field and retry restore until ready

中文

🐛 修复

  • 修复切换笔记后、zoom StateField 尚未挂载就恢复缩放状态时抛出的 Field is not present in this state 报错;改为安全读取字段,并在未就绪时重试恢复

1.0.6

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Sep 16:16

English

🐛 Fixes

  • Previous/next sibling now switches the current zoom region, not the outline node under the cursor

中文

🐛 修复

  • 上一个/下一个同级改为切换当前 zoom 区域,而不再跟随光标所在的同级标题或列表

1.0.5

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Sep 16:15

English

🐛 Fixes

  • Keep outline nesting correct when first opening a note if CodeMirror oldable is not ready yet (fall back to heading level and list indent)

中文

🐛 修复

  • 首次打开笔记时,若 CodeMirror oldable 尚未就绪,大纲仍按标题层级与列表缩进正确嵌套

1.0.4

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Sep 16:15

English

🐛 Fixes

  • Zoom back / forward no longer exits zoom mode; navigation stays among zoomed states (use Zoom out to exit)

📝 Documentation

  • Clarify in README that zoom history navigation does not leave zoom mode

中文

🐛 修复

  • 缩放前进 / 后退不再退出缩放模式,仅在缩放状态间跳转(退出请使用「退出全部缩放」)

📝 文档/其他

  • README 补充说明:缩放历史导航不会退出缩放模式

1.0.3

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Sep 16:15

English

✨ Features

  • Persist the last zoom range per note under the plugin data/ folder (zoom-state.json)
  • Optionally restore the previous zoom when reopening a note
  • Cap how many notes are kept (default 200), drop the oldest entries, and clean up deleted notes
  • Reset all saved zoom records from Settings

🐛 Fixes

  • Restore zoom more reliably when opening a note
  • Write zoom state through �ault.adapter into the vault plugin data directory

⚙️ Improvements

  • Change default hotkeys: Zoom in Ctrl/Cmd + Shift + ., Zoom out (exit all) Ctrl/Cmd + Shift + /

📝 Documentation

  • English plugin description in manifest.json
  • Update README for zoom-state settings, hotkeys, and demo media

中文

✨ 新功能/特性

  • 按笔记将最近一次缩放范围保存到插件目录 data/zoom-state.json
  • 可选在重新打开笔记时恢复上次缩放
  • 可配置最大记录笔记数(默认 200),超出淘汰最旧记录,并清理已删除笔记
  • 设置中可一键重置全部缩放记录

🐛 修复

  • 打开笔记时更可靠地恢复缩放
  • 缩放状态通过 �ault.adapter 写入库内插件 data 目录

⚙️ 改进/优化

  • 调整默认快捷键:放大 Ctrl/Cmd + Shift + .,退出全部缩放 Ctrl/Cmd + Shift + /

📝 文档/其他

  • manifest.json 补充英文插件描述
  • 更新 README:缩放状态设置、快捷键与演示素材

1.0.2

Choose a tag to compare

@PandaNocturne PandaNocturne released this 02 Sep 16:15

English

🐛 Fixes

  • Recognize headings with a code-fence-aware regex instead of metadataCache
  • Refresh heading icons when heading levels change to avoid stale cache mismatches
  • Auto-enable list parsing when focusing a list line while list recognition is off by default

中文

🐛 修复

  • 用跳过代码围栏的正则识别标题,不再使用 metadataCache
  • 标题等级变更时同步刷新图标,避免缓存导致等级与图标错位
  • 默认关闭列表识别时,聚焦列表行自动启用解析