README file from
GithubPin Tab Guard
An Obsidian plugin that protects your pinned tabs from being accidentally closed or unpinned.
Problem
By default in Obsidian, pinned tabs can be unpinned or closed by:
- Pressing
Cmd/Ctrl+Won a pinned tab (unpins it) - "Close all other tabs" (closes pinned tabs too)
- "Close tab group" (closes pinned tabs too)
This can be frustrating if you use pinned tabs to keep important notes always open.
Solution
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.
Installation
From Community Plugins
- Open Settings → Community plugins → Browse
- Search for "Pin Tab Guard"
- Click Install, then Enable
Manual
- Download
main.jsandmanifest.jsonfrom the latest release - Create a folder
pin-tab-guardin your vault's.obsidian/plugins/directory - Copy the downloaded files into that folder
- Enable the plugin in Settings → Community plugins