czottmann / obsidian-mononote

An Obsidian plugin that ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.
https://obsidian.md/plugins?id=zottmann
MIT License
89 stars 2 forks source link

Does not always switch to pinned tabs #29

Open gchegr opened 2 months ago

gchegr commented 2 months ago

Sometimes instead of focusing a pinned tab (I have a few) it tries to focus it and then jumps back to the one that was in focus prior to clicking, and it stays open. Happens for both opening a tab from a link or explorer.

Plus I have not find an option to NOT close the previous current note.

czottmann commented 2 months ago

Thanks for your report.

  1. Are you running the latest version, 1.2.2?
  2. Have you tried adjusting the tab switching delay in the Mononote settings yet? Does that make a difference?
  3. Mononote shouldn't close any tab that has history. Could you give me a reproducible example, please?
kmaustral commented 1 month ago

I had the same problem but find that increasing the delay solves the problem. Thanks.

gchegr commented 1 month ago
  1. It is 1.2.2, fresh from the Community Plugins section
  2. The delay is 100ms. Adjusting it to 300 seems like a solution.
  3. I tried to create a temp vault and reproduce it there, twice (first time when reporting, and again now), but failed to reproduce or to have it consistently in a legit vault. I did try to disable all the plugins than Monotone though, and I feel like it got better... Will try to work with 300ms and see if the problem happens again. Thanks!