Releases: gregbrown1229/obsidian-real-pin
1.0.3
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 usedsetDestructive(), 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
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-modulesdependency with Node's built-innode:module(one fewer third-party package). - Switched off the deprecated
Workspace.activeLeaf; the active tab is now found viagetActiveViewOfType(View). - Replaced the deprecated
setWarning()withsetDestructive()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
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.