scambier / obsidian-no-dupe-leaves

Automatically switch the focus to open notes instead of reopening them
GNU Affero General Public License v3.0
61 stars 6 forks source link

The only working plugin #21

Open rubaboo opened 7 months ago

rubaboo commented 7 months ago

Just wanted to let you know that this plugin is the only one that works in the most recent version of Obsidian. Tried Mononote, Open in New Tab, none of them worked. So I wanted to ask - are there any downsides to using this plugin? I read the warning in the Readme, but not capable of understanding what the implications of that can be, other than it may affect the behavior of other plugins that open files using the same function. Does "public function" mean it is guaranteed to retain the same parameters and never add any new ones?

scambier commented 7 months ago

I'm glad this plugin still works (but a bit sad it's still considered the best option...) 😅

So basically, this plugin works by "hacking into" Obsidian, as opposed to normal plugins that use the official API. It modifies the behavior of a function that is not intended to be modified. The implications are that if another plugin (or Obsidian itself) uses this function, it could possibly lead to bugs since it will not behave as expected. Just something to be aware of.

For example, the plugin "Open in New Tab" is similar to "No Dupe Leaves" but apparently it interferes with Omnisearch (ref).