Skip to content

1.12.9

Choose a tag to compare

@github-actions github-actions released this 06 Oct 04:34
· 138 commits to main since this release
ed5dae1

Knomo 1.12.9

New features

  • Support Obsidian 1.14's six highlight colors, recognizing a leading colored circle or square emoji inside ==...==.
  • Image preview: Double-click an image to zoom in, then drag to view details. On mobile, use double-tap or two-finger pinch; panning a zoomed image does not switch images. Switching images resets the zoom, and failed image loads can be retried directly in the preview.

Improvements

  • Text sizing: Follow Obsidian's preferred size for card text and Composer input, including system text scaling on Obsidian 1.14 mobile; use host UI font sizes for supporting text.
  • Obsidian compatibility: Retain support for Obsidian 1.11.0 and later; enable the new color highlight display on 1.14 and later.
  • Mobile search: Update totals and load-more labels without rebuilding cards, preserving scroll position, loaded images, and rendering already in progress.
  • Search and counts: Reuse prepared filters within each query and cached counts while queries and the index remain unchanged. Cancel outdated scans when searches change or views close.
  • Image preview: Reuse decoded images within a bounded cache of the current and adjacent images, and clear the cache when the preview closes.
  • Random reunion: Show up to 10 memos per group, including image-only and link-only notes. Prefer content outside the last three groups while reducing unnecessary sampling work.
  • Shuffle day: Balance selection across available time ranges, favor richer days moderately, and avoid recently shown dates when other candidates are available.
  • Review views: Keep the current random group or selected day when returning to the page; use Shuffle to choose new results.
  • Sidebar: Reuse unchanged tag trees and update statistics in place, reducing unnecessary rebuilding during pagination and refresh.
  • Task lists: Reduce repeated parsing and checkbox scans when rendering long or nested task lists and syncing task states.
  • Remove unused tag-aggregation and sampling utilities, and simplify outdated tests while retaining useful behavioral coverage.

Fixes

  • Refresh Composer measurements when font sizes change, keeping line heights and cursor positioning in sync.
  • Keep Composer tools and the send button visible and clickable when the mobile keyboard or landscape layout leaves limited space; preserve click-to-type in the blank area below the text.
  • Prevent a delayed settings save from overwriting a newer Monthly date heading format edited after reopening settings.
  • Wait until input-method composition ends before querying mobile search, and discard pending searches when the search page closes.
  • Prevent delayed counts from adding a load-more button to an empty mobile search.
  • Ensure double-clicking an enlarged preview restores the full image, while keeping clicks distinct from dragging.
  • Cancel pending review loads when leaving a review page, preventing delayed results from being applied after navigation.
  • Keep the selected day's content available when review history cannot be read or saved, and report the history failure.

新增功能

  • 适配 Obsidian 1.14 六色高亮,识别 ==...== 开头的彩色圆形或方形 emoji。
  • 图片预览:双击图片放大后可拖动查看细节;移动端支持双击和双指缩放,放大后的平移不会切换图片;切换图片时恢复完整预览;图片加载失败时,可在预览中直接重试。

改进

  • 文字大小:卡片正文和 Composer 输入跟随 Obsidian 首选字号,适配 Obsidian 1.14 移动端系统文字缩放;辅助文字沿用宿主界面字号。
  • Obsidian 兼容:继续支持 Obsidian 1.11.0 及以上版本,六色高亮显示仅在 1.14 及以上版本启用。
  • 移动搜索:更新总数和加载更多文案时保留卡片,避免重新渲染,保留滚动位置、已加载图片和正在进行的分帧渲染。
  • 搜索与计数:在单次查询中复用已处理的筛选条件,在查询与索引未变化时复用计数结果;搜索条件变化或视图关闭时取消过期扫描。
  • 图片预览:复用已解码图片,仅缓存当前图片及邻图,关闭预览时清理缓存,控制连续浏览时的资源占用。
  • 随机重逢:每组最多展示 10 条 Memo,包含纯图片和纯链接记录;优先选择最近三批之外的内容,并减少不必要的抽样工作。
  • 往日漫游:在可用年代段之间平衡选择,对内容较丰富的日期给予适度偏好;仍有其他候选时,优先避开近期已展示的日期。
  • 回看页面:返回随机重逢或往日漫游时保留当前结果,点击“换一批”才重新选择。
  • 侧栏:复用未变化的标签树并原位更新统计,减少分页和刷新时不必要的重建。
  • 任务列表:减少长列表、嵌套任务列表渲染和任务状态同步时的重复解析与复选框扫描。
  • 删除未使用的标签聚合和抽样工具入口,精简过时测试并保留有效行为覆盖。

修复

  • 字号变化后重新测量 Composer 布局,使行高与光标位置同步更新。
  • 移动端键盘弹出或横屏空间受限时,保持 Composer 工具栏和发送按钮完整可见、可点击,并保留正文下方空白区域的点击输入体验。
  • 防止关闭设置页时的延迟保存覆盖重新打开后编辑的较新 Monthly 日期标题格式。
  • 移动搜索等待输入法选字结束后再发起查询,关闭搜索页面时取消尚未提交的查询。
  • 防止晚到计数在空搜索提示页生成无效的“加载更多”按钮。
  • 确保放大图片后再次双击可恢复完整预览,避免普通点击被误判为拖动。
  • 离开回看页面时取消尚未完成的加载,避免导航后继续应用晚到结果。
  • 回顾历史读取或保存失败时,仍可查看已选日期的内容,并明确提示历史记录失败。