Close tabs right of current

Popis

The extension provides functionality of closing tabs that are right (or left) of current (focused) tab, that is known from Chrome browser.

It's compatible with both Opera 11 and 12.

Usage: click the extension button on the toolbar, to close all tabs that are right/left of the current tab. To choose which side will be closed (right or left) go to the preferences page and choose one option.

It's not fancy, nor sophisticated - just to work.

Known limitations:- you can't have both (left and right) buttons - Opera extensions are limited to 1 button only- in Opera 11 it won't work when current tab is speed dial (or any other 'special' tab, because of Opera extension API - they can't be accessed); also, it won't close those kind of tabs

After installing, restart your browser (so it would work with tabs opened before installing).

About other things:- no, I can't do a right-click (context) menu in the tabs, for this functionality - extensions in Opera can't do it- no, I won't make a shortcut - it's somewhat hacking the Opera, and extensions in Opera don't allow it- no, I won't make another version of this - because I don't understand the need for having both 'close left of' and 'close right of' buttons (can anybody present me a use case for using both?). Extension is free to modify, and you could make your own if you want.

Thank you for the extension. I have been missing that functionality, which I had in Firefox with the Tab Mix Plus extension.

However, I would suggest changing it to work like TMP in FF. No need to add an extra button. Simply right-click a tab (does not need to be focused then), and the context menu should include the commands "Close Right Tabs" and "Close Left Tabs".

Way too many steps in this extension to change from right too left. Right click on the extension button, choose preferences, a new tab opens for preferences, then change from right to left, then close that tab. (Even then, I don't know if that change would be made without re-starting Opera!) Not at all convenient. I guess someone will have to make another extension called "Close Left Tabs", so that two buttons are there to choose from. But really, much simpler would be what I outlined earlier, to add "close right tabs" and "close left tabs' to the tab context menu, no buttons needed at all. Opera should really make that part of the browser, as is "close other tabs". Until they do, an extension like that would be nice.

Opera already has "Close Other Tabs" in the context menu, and should have the Left and Right commands too.

That would be much better than adding extra buttons.

--------------

Moderator--please eliminate the spam in this discussion from ngffgsai78f , and cancel that account. Thank you.

Idea: have the middle mouse button (and also a keyboard shortcut of one's choice for those without middle mouse buttons) to switch between right and left on the fly. If possible, update the icon as it switches. I understand that the switch won't work with already opened tabs, but this idea, if feasible, would require one click to switch instead of going in the preferences, etc...