Tobias V. I. Langhoff35 downloadsMake "Undo close tab" reopen closed tabs where they were, instead of at the end of the tab bar.
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.
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.
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.
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!