An Obsidian plugin that protects your pinned tabs from being accidentally closed or unpinned.
By default in Obsidian, pinned tabs can be unpinned or closed by:
Cmd/Ctrl+W on a pinned tab (unpins it)This can be frustrating if you use pinned tabs to keep important notes always open.
Just install and enable — no configuration needed.
This plugin guards the following built-in commands:
| Command | Guarded behavior |
|---|---|
Close current tab (Cmd/Ctrl+W) |
Pinned tab → does nothing |
| Close all other tabs | Only closes non-pinned tabs |
| Close tab group | Only closes non-pinned tabs; if all tabs are pinned, does nothing |
Disabling the plugin restores all original behaviors.
Note: This plugin guards commands triggered by hotkeys and the command palette. Closing a tab via the right-click context menu bypasses the command system and is not affected.
main.js and manifest.json from the latest releasepin-tab-guard in your vault's .obsidian/plugins/ directory