Closed d9k closed 8 months ago
Added pull request #5
My fix adds new problem:
8.
Select B
on left Obsidian half again:
I. A, >B, [N]
; II. C, D, >[N]
9.
Just click on Obsidian right half: suddenly [N]
becomes selected on left half!
I. A, >B, [N]; II. C, D, >[N]
I. A, B, >[N]; II. C, D, >[N]
Closing my MR for now.
fixed PR
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.
Quick Switcher++ plugin mostly solves duplicate tab problem (duplicate from switcher, not from following cross-notes links). Moved to this plugin for now
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.
Sometimes it's required to work with several copies of one tab (different scroll positions).
Legend:
A
: tab>A
: selected tab[A]
: pinned tab>[A]
: selected pinned tabSteps to reproduce:
0) Imagine we have Obsidian splitted by two halves. With tabs:
I. A, >B
;II. C, >D
1) Open new tabN
in right Obsidian half:I. A, >B
;II. C, D, >N
2) Pin this tab to prevent close:I. A, >B
;II. C, D, >[N]
3) Run "split down" or "split right" command. Now Obsidian is splitted by three parts. We have two copies ofA
:I. A, >B
;II. C, D, >[N]
,III. >N
4) Pin tab copy to prevent closeI. A, >B
;II. C, D, >[N]
,III. >[N]
5) Don't want to have Obsidian splitted by three parts. Two parts are enough. So move tab copy (3rd) to left Obsidian half. Now we have two tabs:I. A, B, >[N]
;II. C, D, >[N]
6) Now we have to work with tab B. Let's switch to it:I. A, >B, [N]
;II. C, D, >[N]
7) Now we finished to work with tab B. We want to work again with two copies of tabN
. So we switch back to tab[N]
in left Obsidian half. And it disappears! 😠I. A, B, >[N]
;II. C, D, >[N]
I. A, B, >[N]
;II. C, D, >[N]
I. A, >B
;II. C, D, >[N]
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