Skip to content

Releases: gregbrown1229/obsidian-real-pin

1.0.3

24 Jun 03:11

Choose a tag to compare

Compatibility fix release (supersedes the withdrawn 1.0.2).

1.0.1 styled the modal's confirm button with setDestructive(), which requires Obsidian 1.13.0 — so on Obsidian 1.4.0–1.12.x the confirmation modal would throw at runtime. 1.0.3 reverts to setWarning(), restoring compatibility with the declared minimum app version (1.4.0). Plugin behavior is otherwise unchanged.

Changes

  • Use setWarning() for the modal's confirm button so it works on Obsidian 1.4.0+ (1.0.1 used setDestructive(), which needs 1.13.0).

Provenance

  • Release assets ship with a verifiable build provenance attestation:
    gh attestation verify main.js --repo gregbrown1229/obsidian-real-pin

Manual install
Copy main.js and manifest.json into <vault>/.obsidian/plugins/real-pin/, then enable Real Pin under Community plugins.

1.0.1

23 Jun 19:42

Choose a tag to compare

Maintenance release addressing Obsidian plugin-review feedback. No behavior changes — the plugin gates pinned-tab closes exactly as in 1.0.0.

Changes

  • Replaced the builtin-modules dependency with Node's built-in node:module (one fewer third-party package).
  • Switched off the deprecated Workspace.activeLeaf; the active tab is now found via getActiveViewOfType(View).
  • Replaced the deprecated setWarning() with setDestructive() on the modal's confirm button.
  • Internal cleanup of the close-command wrapper (no longer aliases this).

Provenance

  • Release assets now ship with a verifiable build provenance attestation:
    gh attestation verify main.js --repo gregbrown1229/obsidian-real-pin

Manual install
Copy main.js and manifest.json into <vault>/.obsidian/plugins/real-pin/, then enable Real Pin under Community plugins.

Full Changelog: 1.0.0...1.0.1

1.0.0

23 Jun 18:30

Choose a tag to compare

Initial release.

Real Pin prevents accidental closure of pinned tabs. Triggering the Close current tab command on a pinned tab (via Cmd/Ctrl+W, any custom hotkey bound to it, or the command palette) either asks for confirmation (default) or is blocked entirely, depending on the plugin setting.

Highlights

  • Intercepts the close command itself, so it works regardless of which hotkey is bound.
  • Confirmation modal on pinned-tab close by default; flip the setting to hard-block instead.
  • Mouse close paths (middle-click, right-click → Close) are intentionally left untouched.

Manual install
Copy main.js and manifest.json into <vault>/.obsidian/plugins/real-pin/, then enable Real Pin under Community plugins.