piroor/treestyletab

For middle click on hyperlink, open new tab as a sibling of the current tab.

Closed this issue · 5 comments

I think the New Tabs options screen should have a setting called:
"For middle click on hyperlink, open new tab as [DropDown]", with the usual choices in the dropdown.
With "hyperlink" being any link on a page

It may seem like this is removing the core functionality of Tree Style Tab altogether, but I prefer to use the tree 100% manually. I.e., if there are tabs I want grouped under another, I'll group them myself, otherwise, everything should be a sibling.

Thanks for the great addon!

I've added a new secret preference "extensions.treestyletab.autoAttach.fromCurrent" for this purpose. You'll be able to open new related tab from links as next sibling tab, when you set the value to "3".

However, because I believe such behavior is not reasonable for new tabs "from" the current tab, I won't add configuration UI for the preference to the dialog.

You can try it with the latest development build. http://piro.sakura.ne.jp/xul/xpi/nightly/

After switching "extensions.treestyletab.autoAttach.fromCurrent" to 3, now, upon Ctrl+clicking on the link, that link opens as next sibling tab. But is there now a way to open the link as the child tab? I think it would be beneficial if the user could pick, at what exact location in the tree the link should be opened:

  • child
  • next sibling
  • last sibling?
  • independent tab
  • other

... and possibly, whether to switch to that tab or not.

Also, currently, there is no easy way to specify, at what location in the tree the clicked link should open at (~ per one particular click). But, for some reason, there are three separate configuration options for where to open a new tab (see New Tab tab in Options). Supposing one would click on a link 90% of the time (vs create a new tab and paste the URL of the link there), one would rather expect more configuration options for the clicked link and not for the new tab.

For now I have no plan to add more options for this situation, sorry. If you want to open the link in new sibling tab, please do it by dragging a link and drop it onto a tab or between tabs.

I close this for triage.