Reopen Tab In Place

approvedunreviewed

by Tobias V. I. Langhoff

Make "Undo close tab" reopen closed tabs where they were, instead of at the end of the tab bar.

↓ 35 downloadsUpdated 9d agoMIT

Reopen Tab In Place

Usually when you close a tab in Obsidian and then reopen it by undoing, Obsidian reopens it at the far right of the tab bar. With this plugin, it's reopened in its previous location instead, like in browsers and editors such as VS Code.

Usage

Close a tab (default: Ctrl/Cmd+W), and then run the Undo close tab command (default: Ctrl/Cmd+Shift+T). The tab will reopen in its previous location in the tab bar.

How it works

Obsidian has no public API for this, so the plugin relies on a few internal parts of Obsidian: the list of recently closed tabs and the "Undo close tab" command. It checks that they exist and does nothing if they don't, so a future Obsidian update could make it stop working, but shouldn't break anything.

Compatibility with other plugins

This plugin should be compatible with the following plugins (which I recommend):

Let me know if it interferes with other plugins by opening an issue!

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.