Releases: PandaNocturne/obsidian-quick-zoom
Releases · PandaNocturne/obsidian-quick-zoom
Release list
1.0.11
English
🐛 Fixes
- Restore the top zoom navigation bar that disappeared after 1.0.7: render header DOM with
createElementagain, because CodeMirror panel documents may not providecreateDiv/setCssProps - Read the document title from
editorViewFieldas 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
English
🐛 Fixes
- Harden process env access and zoom-state store pruning typing to clear remaining TypeScript-eslint unsafe access/call warnings
⚙️ Improvements
- Add
getSettingDefinitions()withgetControlValue/setControlValueso settings appear in Obsidian 1.13+ settings search, while keepingdisplay()for older app versions
中文
🐛 修复
- 强化进程环境变量读取与缩放状态清理的类型安全,消除剩余 TypeScript-eslint unsafe access/call 警告
⚙️ 改进/优化
- 新增
getSettingDefinitions(),并通过getControlValue/setControlValue绑定设置服务,使设置可出现在 Obsidian 1.13+ 设置搜索中;同时保留display()以兼容旧版本
1.0.9
English
🐛 Fixes
- Fix Obsidian review Error for
setCssPropsby switching to CSS custom properties (--zoom-outline-*) and applying layout instyles.css - Align
Plugin.onload/onunloadwith Obsidian's void signatures to clear Promise-return warnings
⚙️ Improvements
- Replace deprecated
editorViewFieldandactiveLeafwitheditorInfoField/getMostRecentLeaf - Replace
setImmediatewithwindow.setTimeoutfor safer scheduling - Properly await nested feature
load/unloadpromises - 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
English
🐛 Fixes
- Resolve Obsidian community review errors by removing banned
@typescript-eslint/no-explicit-anydisables and using proper types - Stop assigning styles directly; use Obsidian
setCssProps/show()instead
⚙️ Improvements
- Prefer Obsidian
createElhelpers overdocument.createElement - Use
window.setTimeout/window.clearTimeoutand.instanceOf()for popout-window compatibility - Remove default command hotkeys to avoid conflicts
- Replace CSS
:haswith 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
mkdirpand refreshpackage-lock.json
中文
🐛 修复
- 修复社区审核 Error:移除禁用的
no-explicit-anyeslint-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
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
English
🐛 Fixes
- Previous/next sibling now switches the current zoom region, not the outline node under the cursor
中文
🐛 修复
- 上一个/下一个同级改为切换当前 zoom 区域,而不再跟随光标所在的同级标题或列表
1.0.5
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
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
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
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
- 标题等级变更时同步刷新图标,避免缓存导致等级与图标错位
- 默认关闭列表识别时,聚焦列表行自动启用解析