Pin Tab Guard

pending

by Wildsky

Prevents Cmd/Ctrl+W from unpinning pinned tabs.

Updated 13d agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

Pin 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+W on 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:

CommandGuarded behavior
Close current tab (Cmd/Ctrl+W)Pinned tab → does nothing
Close all other tabsOnly closes non-pinned tabs
Close tab groupOnly 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

  1. Open Settings → Community plugins → Browse
  2. Search for "Pin Tab Guard"
  3. Click Install, then Enable

Manual

  1. Download main.js and manifest.json from the latest release
  2. Create a folder pin-tab-guard in your vault's .obsidian/plugins/ directory
  3. Copy the downloaded files into that folder
  4. Enable the plugin in Settings → Community plugins

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.