Auto Close Oldest Tabs

by usero2-endofday
5
4
3
2
1
Score: 35/100

Description

Automatically close the oldest tab when a maximum tab limit is reached. - This plugin has not been manually reviewed by Obsidian staff.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Obsidian Auto Close Oldest Tabs

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.

v1.0.2

  • New Feature: Added an optional Ignore pinned tabs setting. When enabled, pinned tabs will no longer count towards your maximum tab limit and will be safely ignored from being automatically closed.

❤️ 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