sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
272 stars 14 forks source link

Tab restore order is wild #1882

Open themilkman opened 3 months ago

themilkman commented 3 months ago

Version info

Description

Restoring closed tabs does not restore them in the inverse order.

Steps to reproduce

tab order: X A Y B C D

closing: A B D C

restore order by SM: A C B

tab order after restore: X Y A C B

Expected behavior

Restoring C, D, B, A

(beside the core issue, is is there a way to configure a higher amounts of tabs to restore than only 3 ?)

ipmanlk commented 3 months ago

This issue is happening to me as well.

dpjohnst commented 3 months ago

G'day everyone,

Thank you for reporting this issue! I've got a fix for this in the works and will give you an update again once things have progressed.

Cheers, - Dylan from Sublime HQ

themilkman commented 3 months ago

Thanks for the update, Dylan!

Will the amount of tabs to restore also get increased?

dpjohnst commented 3 months ago

Hi @themilkman,

The maximum amount of tabs to restore is currently set at 128 tabs. I believe the behavior you're referencing might have been caused by the bug I've just fixed.

Could you confirm if any of the repositories you're seeing this issue with have worktrees enabled?

Cheers, - Dylan from Sublime HQ

themilkman commented 3 months ago

Hi @dpjohnst, I can confirm that at least some of my repos I used for this issue's setup have worktrees enabled.

I just tried it again with a set of repos that don't: The tab restore order is still wrong, but I could indeed restore more/all tabs. So that seems to be related, yes :-)

Cheers!