Closed Bug 307228 Opened 19 years ago Closed 16 years ago

Option+Middle-click on tab should close other tabs

Categories

(Firefox :: Tabbed Browser, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: vincent.robert, Unassigned)

Details

Attachments

(1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20050906 Firefox/1.6a1

Safari has this feature. You can click on the closing-button of a tab while pressing Option-key (alt) and 
you close all tabs but the one you clicked on.

Firefox have another great way to close tabs by middle-clicking on them. It could be great if middle-
clicking on a tab while pressing Option could close others tabs.

I think it could be interesing to globally have a modifier key to press to change from Close Tab to Close 
Other Tabs. I think of Alt/Option because it does not seem to be used yet.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Cmd/Ctrl-W : Close Tab
Middle click : Close Tab

Expected Results:  
Cmd/Ctrl-W : Close Tab
Cmd/Ctrl-Option/Alt-W : Close Other Tabs
Middle click : Close Tab
Option/Alt-Middle click : Close Other Tabs
I managed to do something by tweaking tabbrowser.xml. Unfortunately, I can't make a patch as I don't 
work from a source tarball nor a cvs version but with the latest 1.5 nightly.

The change is here : http://lxr.mozilla.org/seamonkey/source/toolkit/content/widgets/
tabbrowser.xml#748

Replace
this.removeTab(event.target);

With
if( event.altKey )
	this.removeAllTabsBut(event.target);
else
	this.removeTab(event.target);

Works great for me :D

Don't know how to change for the Cmd/Ctrl+W shortcut, it seems a little bit trickier.
(In reply to comment #1)
> Don't know how to change for the Cmd/Ctrl+W shortcut, it seems a little bit
trickier.

see bug 280418 how to do this

I tried this solution but Ctrl/Cmd-W shortcut is not defined in tabbrowser.xml and don't want to mess with 
shortcuts. So I think I will stay with the current version which is still a nice improvement for me :-)

Waiting for someone to review this :-)
Attachment #195139 - Flags: review?
Not going to do this, feels a little too easy to do, and it's not at all intuitive, IMO.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Attachment #195139 - Attachment is obsolete: true
Attachment #195139 - Flags: review?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: