This plugin patleeman/obsidian-open-in-new-tab (github.com) has solved this problem, Thanks to the author.
@patleeman thanks for the plugin, it really solves the problem.
To make it perfect, could it also allow the old behaviour via a custom shortcut?
Basically, let the plugin invert default behaviour, without losing the variety of tools available to user.
No plugin: click = same tab, Ctrl+click = new tab.
With plugin: click = new tab, Ctrl+click = same tab.
Why?
Because sometimes (like 25% of the time) I’d actually want to reuse active tab
Hello friends - I wanted to play with the plugin a bit and give it time to sink in before commenting.
@patleeman - many thanks for the plugin and your help.
Two things occur to me.
- The plugin works great –
- but there are apparently many corner cases and it’s not clear the author wants to keep maintaining it, given the various hacks and tricks needed. See here for his comment to that effect
- I was also really hoping for the browser-style option to cmd-click to open in new tabs, in the background, which is really what I’d like. i.e. by default opens new tab and on cmd-click opens links in a background tab.
At this point it all seems to get kludgy. The ideal behavior would be to allow a couple options in the settings for this.
I understand why there’s some resistance to adding that, but I’d like to point out that the whole benefit of Obsidian - vs just editing text/markdown files - is that it makes little productivity quirks like this easier.
I’ll shut up with feature requests now, but I do think this would be a nearly-trivial thing to implement in the native app, plugins have serious drawbacks (some of them articulated above) esp for something like this, and not sure anyone actually wants to build one, and clearly lots of people would find this very useful – and exactly the kind of benefit to a “markdown IDE” like Obsidian.
Thanks so much for the plugin, I hope it gets into the community plugins merged soon!
Is it there another way to use it on mobile in the meantime?
This is fabulous! I was certain there would be a setting to toggle this. I get that you might want the current behavior by default, but enabling opening files in new tabs should be a setting. Now clicking files behaves as I wanted. Both for opening files in new tabs and switching to the correct tab for open files. With a Magic Mouse middle-clicking isn’t an option and key modifiers are a nuisance for what should be normal behavior (modifiers should modify normal behavior not required to do it).
THANK YOU!
Hi there, I made a plugin that supports all corner cases, even if you open a file from another plugin (ie QuickSwitcher++, etc). It modifies the Obsidian openFile()
function, which everything else uses, so I don’t have to manually configure opening from a note, from search, from backlinks, etc. I will be maintaining it aggressively as I use Obsidian for everything and I’m always on the latest version.
It currently also opens pdfs in default system viewer. I’ll be adding a toggle for that tomorrow so those who don’t want that additional behavior can turn it off.
Very, very perfect. Thanks a lot to the author of the plugin, I also changed a line of code to open png, jpg files using the system default program.
this is really brilliant! thank you! What a huge feature missing just solved! many thanks!