Insider 版本 v0.15.3 开始测试

刚刚发版啦

新功能

  • 可以在不同窗口中拖拽面板。
  • 如果将面板拖出当前窗口,会自动创建一个新窗口来展示该面板。
  • 右键单击文件或链接可以选择在新窗口中打开文件或链接。
  • 可以通过拖拽调整侧边栏中标签页的顺序。
  • 新建窗口的位置将会被储存,重启软件后将会恢复。
  • 右键单击官方同步在状态栏中的状态符号会出现一个菜单,可以快速设置同步是否暂停以及查看同步设置、同步事件和已删除的文件。

改进

  • 菜单中的选项现在将按功能分组,以便使用。
  • 核心插件 视图状态 已被移除,成为了编辑器设置中的一个选项。并且其不会像原来一样在状态栏中以文字方式显示当前视图状态,而是以图标显示。
  • 当焦点不在任何面板时,按下 esc 会将焦点重新放置于最后编辑的面板上。
  • mac 端上的菜单显示条目时将显示条目对应的快捷键。
  • 侧边栏面板的菜单中加入了锁定选项。
  • focus on editor 命令现在更名为 focus on last note,这将使 Obsidian 重新打开并聚焦于最后编辑的笔记。(估计中文里是将焦点切换至编辑区命令。)

Bug 修复

  • 修复了由于 CodeMirror 6.0 导致的 Vim 模式下许多快捷键失效的问题。
  • 在 vim 模式下,使用 AltGr 编写的字符现在可以在普通模式和可视模式下正常工作。
  • 修复了 mermaid 无法在新窗口中渲染的问题。
  • 修复了新窗口中渲染嵌入文件时会有大量空白的问题。
  • 修复了同步面板在多个窗口间无法使用的问题。
  • 修复了半透明的样式问题。
  • 修复了发布服务中上传对话框里无法对删除或尚未创建的笔记使用“使用当前版本”的问题。
  • 修复了字体设置中的选择菜单无法显示所有字体的问题。
  • F1-F12键现在可以绑定到没有修饰符的命令。
  • 修复了长文件名与窗口标题栏中按钮重叠的问题。

开发者相关

  • New enhancements for DOM elements and UI events: This applies to all derivatives of Node (like Element, HTMLElement, etc) and all derivatives of UIEvent (like MouseEvent, KeyboardEvent, etc)
    • You can now easily access the element or event’s owner document (element.doc or event.doc) and window (element.win or event.win).
    • You can now use element.instanceOf(HTMLElement) or event.instanceOf(MouseEvent) to perform instanceof checks without having to worry about cross-window constructors.
    • HTMLElement now also has a onWindowMigrated hook that can be used to monitor when the element gets attached to different windows. This can be used to re-initialize views that depend on window globals.
  • There are now workspace events for window-open and window-close.
  • MenuItem now has a new method setSection(string). Items from the same section will be grouped together, in the order they were defined or first used. The default section (empty string) will contain all legacy/plugin/unspecified menu items and is usually put into a specific spot of the sort order (for example, before the danger items). Inspect the DOM to see existing sections’ data-section.
  • We’ve removed the ability to create MenuItem directly - please use Menu.addItem instead.
  • On View, we’ve deprecated the onHeaderMenu and onMoreOptionsMenu in favor of a single onPaneMenu function with a source parameter. This new method will be used for both the header menu (right clicking on a tab header in the sidebar) and the more options menu (three dot menu).

原贴见 Obsidian Release v0.15.3 (Insider build) - Announcements - Obsidian Forum

3 个赞