At the moment, closing a parent-tab in the tree-style tab interface promotes the chronologically-oldest child to the parent of its siblings:
This is unintuitive to me, and differs from the behaviour of the other implementations I've used; it also breaks the abstraction of the tree-style sidebar as "browsing-path to my current location": the now-children siblings were not found within the context of their now-parent, a prior sibling.
Given that the behaviour already exists, I guess I'd prefer a setting for this. I see three potential behaviours:
- The current behaviour (promote a sibling),
- Promote all children into the parent at their current linear location in the tree, replacing the closed parent in-place (this is Tree Style Tab's default behaviour, and proposed in https://orionfeedback.org/d/7702-closing-a-parent-tab-should-promote-all-children-to-the-same-level)
- Create a new, empty "folder" tab to retain the exact tree-structure (my preference) - if the tab is empty, it could fall back to behaviour #2, promoting all children.