piroor / treestyletab

Tree Style Tab, Show tabs like a tree.
http://piro.sakura.ne.jp/xul/treestyletab/
Other
3.48k stars 279 forks source link

[Enhancement] Prevent Automatic Collapse/Expand to keep all tab depths/tab titles in view #3555

Closed gituser823 closed 4 months ago

gituser823 commented 4 months ago

Abstract

I want to be able to only manually collapse trees, not have it done automatically. The same as issue #1142

Steps to see the situation

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Click on another collapsed tree. The current expanded tree will be collapsed
A
\- B (collapsed)
C
\- D
\- E (selected)

Expected result

only collapse on manual collapsing

Actual (present) result

A
\- B (selected)
\- B-1
C (collapsed)

Environment

irvinm commented 4 months ago

image

gituser823 commented 4 months ago

That option doesnt exist in my version:

Selection_024

irvinm commented 4 months ago

Ah ... enable expert options:

image

gituser823 commented 4 months ago

Now it works, thanks!

But one more question: When I now click on a collapsed tree it does not automatically expand. Can I set up that it does, but just does not automatically collapse trees?

piroor commented 4 months ago

Sadly there is no such exact option, so you need to create a new helper addon.

The default auto-collapsing/expansion behavior respects expanded state of trees if they are expanded manually via clicking on the twisty (chevron). Manually expanded trees won't be collapsed automatically when you click a collapsed another parent.