README file from
GithubOpen in New Tab and Preserve Tabs
Open in New Tab and Preserve Tabs changes Obsidian's file-opening behavior so opening a different file opens a new tab while preserving the current file tab.
Behavior
- If the current tab contains file A and you open file B, file B opens in a new tab and becomes active.
- If file B is already open in another tab, Obsidian switches to that existing tab instead of opening a duplicate.
- If the current tab is empty, Obsidian reuses the empty tab.
- If you open the same file that is already active, Obsidian keeps the current tab.
This applies to file opens that use Obsidian's normal openFile flow, including the file explorer, search results, recent files, and calendar daily notes.
Installation
From Obsidian Community Plugins
After the plugin is accepted into the community directory:
- Open Obsidian Settings.
- Go to Community plugins.
- Search for "Open in New Tab and Preserve Tabs".
- Install and enable the plugin.
Manual installation
-
Download
manifest.jsonandmain.jsfrom a release. -
Place them in:
<vault>/.obsidian/plugins/open-in-new-tab-and-preserve-tabs/ -
Reload Obsidian.
-
Enable the plugin in Community plugins.
Notes
The plugin wraps Obsidian's WorkspaceLeaf.openFile method and restores the original method when unloaded.
License
MIT