Repository navigation
Glim v0.2.6
English
Changes since 0.2.5. This release adds content copying, text recognition and presentation playback, and consolidates reader controls with fixes for document layout and preview interaction.
New and improved
- Office reading: Word DOC/DOCX/RTF now use one adaptive reading preview with zoom out/in, a percentage indicator and reset. Conversion or loading failures fall back to the system layout preview. Workbooks use a single styled preview instead of separate layout/data modes. XLSM joins XLSX's disk-backed, paginated worksheet renderer and Finder file associations; macros are never executed.
- Copy and recognize: Add Copy Preview Text for Office/iWork and PDF previews. Word prefers selected text; PDFs copy selected text or the current page. Styled Excel previews copy the current row/column page as TSV from actual indexed cell values, preserving empty cells, rather than copying the range/status label. Add cancellable on-device image text recognition, supported Office/iWork embedded-image extraction and PDF current-page recognition. Spreadsheets intentionally omit the image-recognition button. Supported Macs can select image text directly with Live Text.
- Image clipboard: Add localized Copy Image and Command-C/Control-C when the image reader has focus, prioritizing selected image text. PNG/JPEG can retain their original encoding; other raster formats copy the complete decoded current page as PNG. SVG supplies both original SVG and a compatible PNG of the complete image, rendered separately without changing the visible zoom/scroll position.
- Presentation playback: Add full-screen slideshows for PDF, PPT/PPTX and Keynote. Support previous/next, arrow keys, Page Up/Down, Space/Shift-Space, Escape and content-click advance; keyboard-style presenter remotes use the same navigation. PPT/Keynote previous/next also work in ordinary preview. Playback controls update to reflect whether a slideshow is active.
- Shared reader actions: Extract format-specific ordered action sets, shared floating-toolbar presentation and centralized content context-menu routing. Word, workbooks and other native toolbar readers derive menu actions from their live controls; PDF/images retain specialized commands under the same menu policy. GPUI previews share capability-derived actions with their toolbar. Preserve source-editor editing menus and embedded web/media interactions.
- Paths: Add styled full-path hover cards for files and tabs, using a native panel that stays above native spreadsheet previews.
Fixes / hotfixes
- Fix presentation white screens/crashes caused by moving an active Quick Look view between windows. Keep playback in the original window, hide app chrome in presentation and route navigation through the provider's page controls when available.
- Fix toolbar width calculations that truncated worksheet names or stretched status labels into large gaps. Measure current text/font/icons, keep control order stable, remove filenames from reading toolbars and eliminate duplicate slideshow controls.
- Fix narrow Word previews with readable adaptive layout and zoom. Correct preview clipping: the outer panel including tabs remains rounded, while the upper content corners directly below tabs are square. Remove unnecessary Markdown top/bottom padding.
- Change ordinary PDF reading to Fit width; retain Fit page as a separate option and whole-page fitting for slideshows. Centralize localized PDF/Word reader menus and remove unwanted Services, Writing Tools and browser/search integrations from managed menus.
- Render Markdown diagrams automatically in bounded, viewport-driven batches, replacing manual diagram-page controls that left later blocks unrendered. Reuse a bounded cache, cancel inactive work and invalidate inline layout when rendered diagrams arrive.
- Ignore root-level scratch databases and SQLite sidecars; local
awesome-lists.sqlite3is excluded from source control.
Support limitations
- Word's adaptive conversion may differ from original pagination, complex layout and embedded content; system fallback fidelity depends on macOS Quick Look. XLSX/XLSM preview still omits charts/drawings and shared-string run formatting. Formulas use stored results and are not recalculated. TSV copying uses the current preview page's cached raw values, not display formatting or formulas.
- Generic Office/iWork text copying depends on text exposed by the system preview provider and can be limited to its currently exposed content. PDF text availability depends on PDFKit and the document. Embedded-image OCR supports recognized raster resources in supported modern Office/iWork packages; legacy binary Office image extraction and vector-resource OCR are not supported. OCR accuracy/languages and Live Text availability depend on macOS, hardware and image quality; direct image-text selection requires supported macOS 13+ systems.
- SVG's compatibility PNG uses the reader viewport's rendering resolution; the original SVG remains on the clipboard for vector-capable applications. Large-image decoding and diagram working-memory budgets remain in effect; this release does not claim original-resolution tiled image decoding or completion of all reader-boundary migration.
- Quick Look providers differ in navigation and exposed accessibility content; Home/End and ordinary-preview copying depend on provider support. Physical presenter hardware and the complete interactive format matrix have not been tested. Existing native Liquid Glass requirements/fallback materials remain unchanged.
Validation and installation
- Local formatting, locale-catalog and whitespace checks passed. Release CI passed formatting, release Clippy, workspace tests and native updater checks on Apple Silicon, plus optimized builds and verified packaging for Apple Silicon and Intel. Interactive smoke tests and Intel hardware testing were not performed.
- macOS Apple Silicon and Intel only. Download the matching DMG and replace Glim.app in Applications, or use the built-in updater. Packages are ad-hoc signed, without Developer ID signing or notarization; macOS may require approval in Privacy & Security. Update-feed signatures are separate from Apple notarization.
中文
相对 0.2.5 的完整更新。本版新增内容复制、文字识别和幻灯片播放,统一阅读器操作入口,并修复文档排版与预览交互问题。
新增与改进
- 办公文档阅读: Word DOC/DOCX/RTF 收敛为单一自适应阅读预览,提供放大、缩小、缩放比例和重置;转换或加载失败时回退系统版式预览。工作簿保留单一样式预览,移除独立的版式/数据模式。XLSM 接入与 XLSX 相同的磁盘索引、分页工作表渲染及 Finder 文件关联,不执行宏。
- 复制与识别: Office/iWork 和 PDF 预览增加“复制预览文字”。Word 优先复制选中文字,PDF 复制选区或当前页。Excel 样式预览从实际单元格索引复制当前行/列页的 TSV,保留空单元格,修复只复制出范围状态文字的问题。新增可取消的本机图片文字识别、受支持 Office/iWork 内嵌图片提取和 PDF 当前页识别。表格格式不显示图片识别按钮。受支持的 Mac 可通过实况文本直接选择图片中的文字。
- 图片剪贴板: 图片阅读区域取得焦点时,支持中文“复制图片”右键菜单及 ⌘C/Ctrl+C,存在图片文字选区时优先复制文字。PNG/JPEG 可保留源编码,其他位图复制完整的当前解码页为 PNG。SVG 同时提供原始矢量数据和兼容 PNG,独立渲染完整图片,不改变当前缩放和滚动位置。
- 幻灯片播放: PDF、PPT/PPTX、Keynote 支持全屏放映,提供上一页/下一页、方向键、Page Up/Down、空格/Shift+空格、Escape 和内容区单击翻页;模拟键盘的翻页器沿用相同导航。PPT/Keynote 在普通预览下也可使用上一页/下一页,播放控件随实际放映状态更新。
- 统一操作范式: 抽离各格式有序操作集合、共享悬浮工具栏展示和内容区右键路由。Word、工作簿及其他具有原生工具栏的阅读器从实时控件生成菜单;PDF/图片保留专用命令,共用菜单策略。GPUI 预览与工具栏共用按阅读器能力生成的操作。源码编辑菜单、嵌入网页和系统媒体控件保留各自交互。
- 路径提示: 文件和顶部标签增加样式化完整路径浮窗,使用原生面板,避免被原生 Excel 预览遮挡。
修复 / hotfix
- 修复将活动 Quick Look 视图迁移到其他窗口导致的放映白屏/崩溃:改在原窗口中播放,全屏放映隐藏应用框架,并在可用时通过系统预览提供者的翻页控件导航。
- 修复工作表名截断、状态文字被拉伸造成大段空白等工具栏宽度问题:按当前文字、字体、图标测量;保持控件相对顺序,移除阅读工具栏中的文件名及重复放映控件。
- 修复 Word 预览过窄、难以阅读的问题,增加自适应排版和缩放。统一预览裁切:包含标签的外层面板保留圆角,标签下方内容区顶部两角使用直角;移除 Markdown 多余上下留白。
- PDF 普通阅读改为“适应宽度”,另保留“适应整页”,放映继续整页适应。统一 PDF/Word 阅读右键菜单及中文标题,移除受管菜单中无关的 Services、Writing Tools 和浏览器/搜索集成。
- Markdown 图表改为按可视区域自动分批渲染,移除导致后续图块留空的手动图表翻页入口;使用有界缓存,取消非活动工作,图表完成后及时失效并重算行内布局。
- 忽略仓库根目录临时数据库及 SQLite 附属文件;本地
awesome-lists.sqlite3不纳入版本管理。
支持范围与限制
- Word 自适应转换可能与原始分页、复杂排版及嵌入内容存在差异,系统回退预览的还原程度取决于 macOS Quick Look。XLSX/XLSM 预览仍不包含图表/绘图和共享字符串分段富文本;公式使用已保存结果,不重新计算。TSV 复制当前预览页的缓存原始值,不复制显示格式或公式。
- 通用 Office/iWork 文字复制依赖系统预览提供者暴露的内容,可能仅覆盖当前可访问部分。PDF 文字可用性取决于 PDFKit 和文档。内嵌图片 OCR 支持现代 Office/iWork 包内可识别的位图资源,不支持旧式二进制 Office 图片提取及矢量资源 OCR。识别准确率、语言及实况文本能力受系统、硬件和图片质量影响;图片直接选字需要受支持的 macOS 13+ 系统。
- SVG 兼容 PNG 使用阅读视口的渲染分辨率;支持矢量的应用仍可获取原始 SVG。大图解码及图表工作内存预算继续生效;本版不代表已支持原分辨率图片分块解码,也不代表全部阅读器边界迁移已经完成。
- 不同 Quick Look 提供者的翻页及辅助功能文字暴露程度存在差异,Home/End 和普通预览复制能力取决于提供者。未测试实体翻页器及完整格式交互矩阵;原生 Liquid Glass 的系统要求和旧系统材质回退保持不变。
验证与安装
- 本地格式、语言目录及空白检查通过。发布 CI 已通过 Apple Silicon 的格式检查、Release Clippy、工作区测试和原生更新器检查,以及 Apple Silicon/Intel 优化构建与安装包校验。未进行交互冒烟和 Intel 真机测试。
- 仅支持 macOS Apple Silicon 和 Intel。下载对应架构 DMG,将 Glim.app 替换到 Applications,或使用内置更新器。安装包采用 ad-hoc 临时签名,未经 Developer ID 签名或公证,macOS 可能要求在“隐私与安全性”批准。更新源签名与 Apple 公证是独立机制。