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

[ZCO-257] Prevent closing pinned tabs #4

Closed d9k closed 8 months ago

d9k commented 9 months ago

Sometimes it's required to work with several copies of one tab (different scroll positions).

Legend:

Steps to reproduce:

0) Imagine we have Obsidian splitted by two halves. With tabs:

Please just DON'T CLOSE PINNED TABS. If we have any number of pinned tabs they must be preserved. Close not pinned tabs only!!

ZCO-257

d9k commented 9 months ago

Added pull request #5

d9k commented 9 months ago

My fix adds new problem:

Closing my MR for now.

d9k commented 9 months ago

fixed PR

czottmann commented 9 months ago

Hi @d9k, thanks for the report and the detailed test case and everything! Nice work. I'll have to look into this, and I will, just not right away, as Mononote is not my highest priority at the moment.

d9k commented 9 months ago

Quick Switcher++ plugin mostly solves duplicate tab problem (duplicate from switcher, not from following cross-notes links). Moved to this plugin for now

czottmann commented 8 months ago

Pull request accepted, ran into smaller issues when trying to merge, ended up copying your one-liner into the new work branch manually. Commit message contains attribution. Thanks again, @d9k!

Fix will be in the upcoming v1.1.

czottmann commented 8 months ago

Fixed in https://github.com/czottmann/obsidian-mononote/commit/9c14deb2de93a1b8cf23d9b9bb6bef1625acef4c