piroor / treestyletab

Tree Style Tab, Show tabs like a tree.

Home Page:http://piro.sakura.ne.jp/xul/treestyletab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Close Group Shortcut

rgvcorley opened this issue · comments

Apologies if this is not the place to submit a feature request!

I would like to be able to close a tab and all of it's children with a simple Ctrl + click (on x icon) or Shift or something.

At the moment it requires a right click

I have no plan to implement custom keyboard shortcuts by TST. Instead, you can add shortcuts via KeySnail or other addons which provide customizability of shortcuts. To close the current tree, you should use following code for the new shortcut:

gBrowser.treeStyleTab.removeTabSubtree(gBrowser.selectedTab);

Or, another way, you can close all tabs in the tree when you click the close box of the parent tab with collapsed children. (In other words, to close the tree, you have to collapse the tree at first, and close the tab, then all children are closed too.)

Sadly, KeySnail does not exactly what I and @rgvcorley want. I described it in the issue referenced above.

Firefox already have very large number of keyboard shortcuts, and other addons also provide their own keyboard shortcuts, I cannot find out safe combinations for my features. So I gave up and decided to provide only APIs for other addons. Please use generic addons to customize keyboard shortcuts which can define custom actions based on scripts. Sorry.

Actually, this wouldn't be a stand-alone key binding but a mouse event combined with a keyboard modifier key. You can control that, can't you?