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

[Feature request] (Sub Tabs/Trees selection Shift+Click is pressed) #3541

Closed SHHSSH closed 5 months ago

SHHSSH commented 5 months ago

Hi @piroor

I am looking to request a feature where if the user Shift+Clicks on a tree that is currently expanded that all sub Tabs/Trees are selected as they are if the tree is collapsed.

I'm currently using macros to Shift+Click+Application Menu Key(the key we discussed a few months back) on the current active tab through image recognition. This allows me to quickly access the context menu for multiple tabs and easily unload them or whatever need be done.

Unfortunately for trees that are expanded this does not function as I think it should.

To clarify once again, when a tree is expanded, if the user Shift+Clicks on the tree parent, TST does not select the sub trees/tabs as it does when the tree is collapsed.

I don't believe there are any TST settings that adjust this but if you need to confirm any settings that you think might be relevant please run your thoughts by me.

Thanks.

piroor commented 5 months ago

In short: I'm negative to implement this as a built-in option. TST's special behavior on a collapsed tree + shift-click is based on the policy to keep consistency.

Shift-click on a tab is an action to highlight tabs between the clicked tab and the previously clicked or the active tab. Assume that there are some tabs:

On this case,

TST's this kind behaviors refer the one on other UIs in Firefox and other major applications. The basic strategy of Shift-click on this case refers item selection on Firefox's "Browsing Library" and Windows Explorer.

We need to remind that TST's (Frefox's) tabs are different from items and folders on these cases. TST's tab behaves like both folder and item. It needs to be moved individually like told at #3538, so simulating the behavior of macOS's Finder completely (move descendants together even if only the parent is highlighted) looks not suitable.


However any helper addon providing the behavior (shift-click on an expanded tree parent to select all its descendants) is always welcome. I'll add it to the list of known helper addons if you publish it.

SHHSSH commented 5 months ago

Thanks for the explanation, I'll look into developing a solution.

EDIT A personal reminder to acknowledge the potential importance/utilisation of unfocused TST sidebar prior to Shift click to remediate issues with previous focused/selected tab.