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

Close and Switch to Recent Tab

xzhixzhi22 downloads

Auto-switch to the most recently used tab when closing the current one.关闭当前标签页后,自动切换到最近所在的标签页

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

中文 | English

Close and Switch to Recent Tab

Auto-switch to the most recently used tab when closing the current one.

👀 Preview

📖 Background

By default, Obsidian switches to the adjacent tab when you close the current one. This means that if you have tabs A → B → C open in that order and you're viewing C, closing C always jumps to B — even if you were just working in A moments ago.

Browsers like Chrome and Firefox handle this differently: they switch to the most recently used tab. This plugin brings that behavior to Obsidian.

✨ Features

Feature Description
MRU-based switching Tracks the last 30 visited tabs; on close, switches to the most recently used one
Command support Includes a dedicated command "Close and Switch to Recent Tab" for keyboard shortcuts
Zero configuration Works out of the box — no settings panel needed
Lightweight Under 100 lines of code, no external dependencies

📦 Installation

From Obsidian Community Plugins (Recommended)

  1. Open Obsidian → Settings → Community plugins
  2. Click Browse and search for Close and Switch to Recent Tab
  3. Click Install, then Enable

From GitHub Releases

  1. Download main.js and manifest.json from the latest release
  2. Place them in <vault>/.obsidian/plugins/close-and-switch-to-recent-tab/
  3. Restart Obsidian and enable the plugin in Settings → Community plugins

🚀 Usage

The plugin works automatically — just close a tab as you normally would (middle-click, Ctrl+W, or the close button), and Obsidian will switch to the most recently visited tab instead of the adjacent one.

You can also assign a hotkey to the built-in command Close and Switch to Recent Tab via Settings → Hotkeys for a dedicated close-and-switch shortcut.

📄 License

MIT © Xzhi

💖 Support

If you enjoy this plugin and want to say thanks, you can buy me a bubble tea!

WeChat Pay WeChat Tip Alipay
WeChat Pay WeChat Tip Alipay
HealthExcellent
ReviewSatisfactory
About
Switch to the most recently used tab when closing the current one, matching browser MRU behavior instead of jumping to the adjacent tab. Track the last 30 visited tabs and offer a dedicated Close and Switch to Recent Tab command for hotkeys — zero configuration required.
NavigationCommands
Details
Current version
1.0.0
Last updated
3 days ago
Created
3 days ago
Updates
1 release
Downloads
22
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
xzhixzhi
GitHubgithub-xzhi
  1. Community
  2. Plugins
  3. Navigation
  4. Close and Switch to Recent Tab

Related plugins

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Leader Hotkeys

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

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

TagFolder

Show tags as folder.

Recent Files

Display a list of recently opened files.