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

Auto Close Oldest Tabs

usero2-endofdayusero2-endofday4 downloads

Automatically close the oldest tab when a maximum tab limit is reached.

  • Overview
  • Scorecard
  • Updates2

A lightweight Obsidian plugin that helps you keep your workspace clean by automatically closing the oldest tabs when you reach a predefined limit. No more endless cluttered tabs! Just set your desired limit, and the plugin will seamlessly close your least recently used (LRU) tabs in the background.

Features

  • Tab Limiter: Set a maximum number of tabs allowed to be open simultaneously in the main workspace.
  • Least Recently Used (LRU) Logic: When the limit is exceeded, the plugin smartly identifies and closes the tab that you haven't interacted with for the longest time, ensuring your active work is never disrupted.
  • Force Open in New Tab: A built-in option to prevent Obsidian from replacing your active tab when you click on links or files. This ensures your navigation naturally opens new tabs until the limit is reached, giving you a smooth browsing experience.

Installation

Manual Installation

  1. Download the latest release (main.js, manifest.json, styles.css if any).
  2. Create a folder named obsidian-plugins-auto-close-oldest-tabs inside your vault's .obsidian/plugins/ directory.
  3. Place the downloaded files into that folder.
  4. Reload Obsidian and turn off Safe Mode in Settings > Community plugins.
  5. Enable the "Auto Close Oldest Tabs" plugin.

Usage & Settings

Once the plugin is enabled, you can configure it via Settings > Auto Close Oldest Tabs:

  1. Maximum open tabs: Enter the maximum number of tabs you want to keep open (Default is 3). Once you open the 4th tab, the oldest tab will automatically close.
  2. Always open in new tab: Toggle this ON if you want clicks on internal links and files to always open in a new tab instead of replacing the one you are currently reading.

Changelog

v1.0.1

  • Bug Fix: Fixed a critical logic bug where newly opened tabs were incorrectly identified as the oldest tabs and closed immediately when the tab limit was reached.

❤️ Support & Donate

If this plugin has improved your Obsidian workflow, saved you time, or you just want to support its continued development, please consider donating!

Your support is incredibly appreciated, helps fix bugs, and keeps this project alive and growing. 🙏

https://buymeacoffee.com/endofday

Built with ❤️ for the Obsidian Community

75%
HealthExcellent
ReviewCaution
About
Close the least-recently-used tabs automatically when open tabs exceed a configurable limit to keep your workspace tidy. Force internal links and files to open in new tabs until the limit is reached to avoid replacing your active note.
WorkspacesAutomation
Details
Current version
1.0.1
Last updated
3 days ago
Created
Last week
Updates
2 releases
Downloads
4
Compatible with
Obsidian 1.0.1+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
usero2-endofdayusero2-endofdayusero2
GitHubusero2
  1. Community
  2. Plugins
  3. Workspaces
  4. Auto Close Oldest Tabs

Related plugins

Homepage

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

Templater

Create and use dynamic templates.

BRAT

Easily install a beta version of a plugin for testing.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Vertical Tabs

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

Readwise Official

Sync highlights from Readwise to your vault.

Update modified date

Automatically update a frontmatter modified date field when the file is modified.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Actions URI

Add additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.

Open Tab Settings

Adds options to customize how tabs are opened, including open in new tab by default, preventing duplicate tabs, and more.