Insider 版本 v1.4.0 开始测试

看来是憋了个大招


新功能

新增属性区域。这个区域可以让你简单快捷地去添加标签、别名、日期以及其他笔记需要的元信息(就是以前 YAML 区域的美化增强版)。在这次更新中,元信息支持使用链接。

property-editor

使用介绍

  • 这个新版元信息编辑器仅在实时预览模式以及阅读视图下显示
  • 支持的属性类型:
    • 文本:包括内部链接
    • 列表:包括内部链接
    • 数字
    • 待办事项
    • 日期
    • 时间
  • 同时,新增了与属性交互的命令
    • 新增属性(Ctrl/Command + ;
    • 清除属性
    • 编辑属性
    • 显示所有属性
    • 显示文件属性
    • All properties(所有属性)侧边栏将以列表形式展示整个库中使用的属性名称,以及使用次数(类似标签列表)
  • File properties(文件属性)侧边栏将展示当前文件的使用的属性
  • 你可以剪切、复制、粘贴属性

可移植性

尽管可视化方式发生了改变,元信息仍然是以 frontmatter 的形式储存在笔记中的,也就是和以前一样。这意味着即便使用简单的文本阅读器,你也仍然可以访问你的元信息。

改进与提升

  • 标签自动补全现在支持模糊搜索
  • PDF:
    • 增加了 “Copy as quote” (复制为引用)和 “Copy annotation” (复制批注)命令。
    • 在批注里增加了复制按钮
    • 在上下文菜单里增加了“Copy link to page”(复制该页链接)选项
  • Mermaid 升级至 v10

Bug 修复

  • 修复了 PDF 单页视图会重置至第一页的问题。
  • 修复了 PDF 搜索设置在开启侧边栏时无法点击的问题。
  • 修复了关闭弹出窗口时会保持某一模块活跃的问题。
  • macOS:在无边框模式下,创建或关闭标签组右上角按钮不再偏移。
  • 文件恢复模块在大仓库中开启时会显示加载状态。
  • 工作区:修复了白板中 “follow link under cursor”(打开当前链接)命令无法工作的问题。
  • 白板:现在轻微移动所选元素将不再导致堆叠标签组滚动。
  • 大纲:修复了使用"Show outline"(显示大纲)命令打开大纲页面时大纲无法渲染的问题。
  • 新标签页将显示当前的快捷键。

开发者相关

  • Vault: createFolder now return a TFolder.
  • Metadata: FrontMatterCache no longer inherits from CacheItem.
  • Theming: new CSS variables have been added for Properties that start with --metadata

About Properties

Internal Links

Internal links can be added to frontmatter using the following syntax:

---
link: "[[Link]]"
linklist:
  - "[[Link]]"
  - "[[Link2]]"
---

tag/alias/cssclass vs tags/aliases/cssclasses

As of 1.4.0, we’re deprecating the “tag”, “alias”, and “cssClass” frontmatter keys. The new property editor will automatically migrate to tags, aliases, and cssclasses and the values will automatically be converted to lists.

The old keys will still be identified correctly in the app, but the property editor will always prefer tags and aliases.

原文见 Obsidian Changelog - Obsidian

9 个赞