Skip to content

1.2.26

Choose a tag to compare

@github-actions github-actions released this 08 Nov 12:34
· 17 commits to main since this release

默认单文件保存,多设备同步按需开启

Better Manager 1.2.26 默认回到更简单的单机保存方式:只读写 data.json,不再创建 .bpm 恢复目录。多设备实时同步的用户可以在基础设置中开启「启用配置同步保护」。

单机模式(默认)

  • 只读写 data.json,不创建 .bpm,也没有草稿文件、冲突副本和中断保存恢复。
  • 设备记录和预设保存在 data.json,不再维护 data/devices/*.json 和设备心跳文件。
  • 手动保存、自动保存、关闭时的保存询问以及「不保存」回退都保持不变。
  • 外部修改 data.json 后,保存前会确认一次,避免直接覆盖。

配置同步保护(可选)

  • 仅在 Obsidian Sync、iCloud、Syncthing 等工具多设备实时同步本库时开启;开启后会恢复草稿、冲突副本与中断保存恢复,并创建 .bpm 目录。
  • 修改开关后需重启 Obsidian 生效;切换前会先保存当前配置,关闭时可选择同时删除 .bpm。
  • 从旧版本升级且已有配置时,会沿用原来的开启状态;全新安装默认关闭。
  • 开启后请把 .bpm 加入同步工具的排除列表;检测到同步插件但保护关闭时,BPM 会提示一次。

恢复与设置界面

  • 删除 .bpm 或 data 目录后,BPM 会自动丢弃失效的恢复锚点并按现有 data.json 重建,不再无法启动;保存也能正常继续。
  • 设置分类列表右侧新增与设置页一致的搜索按钮和保存按钮;保存按钮仅在「仅手动保存配置」开启时显示。
  • 修复设置分类标题左侧齿轮图标丢失的问题。
  • 打开管理器时的内部布局整理不再产生「未保存」状态。

验证

  • 自动检查通过(554 个测试),构建通过。
  • 在空的临时 vault 中实测了默认单机模式、手动/自动保存与放弃、双向切换同步保护、删除恢复目录后的启动与再次保存,以及设置列表的搜索/保存按钮。

English

Single-file saving by default, sync protection on demand

Better Manager 1.2.26 returns to a simpler single-machine setup by default: only data.json is read and written, and no .bpm recovery folder is created. If a sync tool keeps this vault in sync across devices, turn on Enable configuration sync protection in Basic settings.

Single-machine mode (default)

  • Only data.json is read and written. There are no .bpm, draft files, conflict copies or interrupted-save recovery.
  • Device records and presets live in data.json; data/devices/*.json and device heartbeat files are no longer maintained.
  • Manual saving, automatic saving, the close prompt and Don't save rollback are unchanged.
  • If data.json changed externally, saving asks for confirmation instead of overwriting silently.

Configuration sync protection (optional)

  • Enable it only when Obsidian Sync, iCloud, Syncthing or a similar tool syncs this vault in real time across devices. It restores drafts, conflict copies and interrupted-save recovery, and creates the .bpm folder.
  • Restart Obsidian after changing the switch. The current configuration is saved first, and turning protection off can also delete .bpm.
  • Upgraded installations with an existing configuration keep the previous enabled state; fresh installs start with it off.
  • Exclude .bpm from your sync tool. BPM shows one reminder if a sync plugin is detected while protection is off.

Recovery and settings UI

  • Deleting .bpm or the data folder no longer prevents BPM from starting: stale anchors are discarded and the configuration is rebuilt from data.json; saving continues to work.
  • The settings category list gains the same search and save buttons as the settings editor; save appears only when Save settings manually is on.
  • Fixes the missing gear icon beside the settings category heading.
  • Internal layout normalization on opening the manager no longer creates an unsaved state.

Verification

  • Automated checks pass (554 tests), and the build passes.
  • Tested in an empty temporary vault: default single-machine mode, manual/automatic saving and discarding, switching sync protection both ways, starting and saving after deleting the recovery folder, and the settings-list search/save buttons.