👉 You should take a look at https://github.com/czottmann/obsidian-mononote 👈
Automatically switch the focus to open notes instead of reopening them
The discussion that led to this plugin's creation.
Obsidian's default behavior is to replace the old note A
with the new note B
when you open it,
even if B
is already open in another pane, leading you to have 2 instances of B
.
This plugin will avoid opening duplicates when possible, while still respecting all "force open in a new pane" instructions (e.g. middle click on a link).
Internally, it overwrites the public function openLinkText()
, which is called when you click on a link in a note. This also affects other plugins that use this function - like Omnisearch -, but does not work on core features like the File Explorer.
Add your input the the original feature request to tell Obsidian that you'd like this behavior as the default :)
As this is a quick hack over the default behavior, no feature request will be considered. You can submit PRs for bugfixes.