Make new tabs open within the stack?

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

4. April 2012, 02:59:59

drworm

Posts: 1521

Make new tabs open within the stack?

When I open a link in a new tab, I would prefer it to open within the tab stack it was opened from because, more often than not, it would be closely related to the pages I have in said stack.

This is a documented feature, but it doesn't behave as documented (http://help.opera.com/Linux/11.00/en/tabs.html)

New tabs opened from within a stack via the link context menu remain within the stack



I'm sure this must have been asked before, but with such generic terms I didn't find anything. I am using Opera Next (12 build 1359), so perhaps this is a new bug?
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

4. April 2012, 04:49:49

Pesala

Reclining Buddha

Posts: 25600

Why the help link from Opera 11.00 if you're using Opera 12.00 ?

I think it was something from early releases that was removed later, but the documentation apparently was not updated for Opera 11.62.

http://help.opera.com/Windows/11.60/en/tabs.html#stack
SkinsTipsButtonsBackupSecurityUser ScriptsLanguage ForumsWiki
Browser JSChangelogsOpera NextDragonflyBugsCrashesFTP
My WebsiteMy ForumsOpera ReviewMy FontsIrfanViewSearchDownloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

4. April 2012, 11:23:14

drworm

Posts: 1521

Originally posted by Pesala:

Why the help link from Opera 11.00 if you're using Opera 12.00 ?


Because it was the only reference I found when searching Google. I didn't realise there was an updated version.

I think it was something from early releases that was removed later, but the documentation apparently was not updated for Opera 11.62.


Thank for clarifying. It's unfortunate it can't be done. Tab stacking really isn't that useful as it is.
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

18. May 2012, 22:03:29

opticyclic

Posts: 82

This looks like it could be done with an extension:
http://dev.opera.com/articles/view/extensions-api-tabs-create/

http://dev.opera.com/articles/view/extensions-api-tabGroup-insert/

Although I'm not sure if you can customise the context menu to create a new item "Open in tab group"

18. May 2012, 22:49:19

drworm

Posts: 1521

It can indeed be done with an extension. This is the code:

var lastSelected;

opera.extension.tabs.onfocus = function(e) {
  lastSelected = opera.extension.tabs.getSelected().tabGroup;;
}

opera.extension.tabs.oncreate = function(e) {
    var sel = opera.extension.tabs.getSelected();

    if (sel.id == e.tab.id)
        sel = lastSelected;
    if (sel.tabGroup)
        sel.tabGroup.insert(e.tab);
}


This didn't work a couple of builds ago, but seem to work ok now. It also only works for middle-click and not from the context menu.
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

18. May 2012, 23:04:04

drworm

Posts: 1521

Actually, there is now an extension that does this very well: https://addons.opera.com/en/extensions/details/autostack/
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

Forums » Opera for Windows/Mac/Linux » Opera browser