Skip to content

2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Nov 16:35
b0c670e

Changelog v2.0.0 (08.11.2026)

Complete rewrite of the plugin. The lock model is redesigned so that Lock and Strict lock behave consistently, and locks are enforced through Obsidian's API instead of DOM workarounds that broke in some setups.

Lock model

  • Lock - the note always opens in reading view and can be switched to editing with one click. Opening in reading view is no longer optional, it's the core of what a lock does.
  • Strict lock - blocks editing completely: the editor is read-only, and task checkboxes and properties can't be changed from reading view. Trying to edit opens a dialog with Edit once and Unlock.
  • Edit once - edit a strictly locked note until you leave it, switch back to reading view or choose Finish editing.
  • Folders pass their lock to everything inside. A note can be stricter than its folder, never less strict.
  • New notes created in a locked folder are editable the first time they're opened.
  • The "Prevent editing in locked notes" setting is removed. Its role is taken over by Strict lock.

Interface

  • Lock button in the note header (also on mobile), status bar item and context menus in the file explorer, note menu and editor, including multi-selection
  • Direct switching between Lock and Strict lock, with a short explanation of what changes
  • Separate icon for strict lock, explorer icons aligned to the end of the row
  • Commands: Strict lock current note, Unlock current note, Edit current note once, Finish editing current note. The existing toggle-note-lock command ID is kept, so users' hotkeys keep working.
  • Settings rebuilt with grouped settings and a list of everything that is locked, with type and text filters, sorting by name, "Show more" paging, and removal of entries whose files no longer exist
  • Icons in notifications

Data and migration

  • New data.json format with a version field
  • 1.x data is migrated automatically on first start. Normal locks become strict if "Prevent editing in locked notes" was on. The old file is backed up as data-1.x-backup.json.
  • Locks follow renamed and moved notes and folders, including everything inside a folder, and are removed when files are deleted
  • Settings changed on another device are reloaded automatically

Fixes

  • Locked notes open in reading view again, also when the previous note was in editing mode (#9)
  • Strict locks are no longer lost on rename
  • After leaving a locked note, the next unlocked note opens in the mode used before

Breaking changes

  • Minimum Obsidian version is now 1.11.0 (versions.json maps 1.3.1 to 0.15.0 for older apps)
  • "Prevent editing in locked notes" and the notification length settings are removed