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] Auto show and hide TST when needed #3543

Closed LMauricius closed 4 months ago

LMauricius commented 5 months ago

Abstract

I'd like to propose a QoL improvement for saving space and tab management. Would be possible to implement (an option of) automatically showing TST whenever we move from having one tab open to two or more, along with hiding the sidebar when we close all tabs except one? This would save valuable screen space when I for example drag a tab to separate window to focus, and would automatically open TST when it is truly needed.

Steps to see the situation

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Open TST if it is closed
  4. Close all tabs except one
  5. TST is still open despite not being needed

Expected result

TST opens and closes when needed.

Actual (present) result

TST needs to be manually opened and closed.

Environment

piroor commented 5 months ago

There is a FAQ: https://github.com/piroor/treestyletab#user-content-feature-requests-automatically-hide-the-sidebar

Due to limitations of the WebExtensions API, this is impossible. There exists a workaround with userChrome.css.

The WebExtensions API allows us to toggle visibility of the sidebar with keyboard shortcuts and the toolbar button. Other arbitrary timings are disallowed, including mouseover and long-press of a key.

github-actions[bot] commented 4 months ago

This issue has been closed due to no response within 7 days after labeled as "wontfix", 7 days after last reopened, and 7 days after last commented.