Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Pin Tab Guard

wildskyfwildskyf32 downloads

Prevents Cmd/Ctrl+W from unpinning pinned tabs.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

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:

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

  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
90%
HealthExcellent
ReviewSatisfactory
About
Protect pinned tabs from accidental closing or unpinning by blocking built-in close commands (Cmd/Ctrl+W, Close all other tabs, Close tab group) from affecting pinned notes. Preserve normal tab behavior elsewhere and allow context-menu closes to still work.
CommandsHotkeysInterface
Details
Current version
1.0.0
Last updated
2 months ago
Created
2 months ago
Updates
1 release
Downloads
32
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
wildskyfwildskyf
github.com/wildskyf
GitHubwildskyf
  1. Community
  2. Plugins
  3. Commands
  4. Pin Tab Guard

Related plugins

Tray

Run Obsidian from the system tray for customisable window management and global quick notes.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Note Toolbar

Add customizable toolbars to your notes.

Leader Hotkeys

Add leader hotkey support to any command (like tmux or vim).

Mousewheel Image zoom

Increase or decrease the size of an image by scrolling.

Floating Search

Search text by using Obsidian default search view.

Lean Terminal

Embedded terminal panel powered by xterm.js and node-pty - no external windows.

Code Editor Shortcuts

Add keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code (VS Code) or Sublime Text.

Slash Commander

Customize the slash command list, assign each command an icon.

Doubleshift

Open the command palette by pressing Shift (or any other key) twice like in IntelliJ and create your own shortcuts.