Reopen Tab In Place

by Tobias V. I. Langhoff
5
4
3
2
1
Score: 50/100

Description

Reopen Obsidian tab in place after "Undo close tab"

Reviews

No reviews yet.

Stats

0
stars
17
downloads
0
forks
3
days
3
days
3
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
2
commits

Latest Version

3 days ago

Changelog

Initial release, with basic functionality.

Obsidian's "Undo close tab" command reopens a closed tab at the end of the tab bar. This plugin records where each tab was when it was closed and moves the reopened tab back there.

README file from

Github

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

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