GNOME Bugzilla – Bug 627986
Middle click to close tabs (like Firefox)
Last modified: 2010-08-26 11:30:10 UTC
I would find it useful if you could close gedit tabs by middle clicking on the tab. Firefox has this ability and it is much quicker and easier than locating the relatively small cross. I have managed to create a patch for this feature, but am still just beginning with Linux development. I thought this small enhancement (which has bugged me for a while) would be a good place to start!
*** This bug has been marked as a duplicate of bug 445402 ***
Created attachment 168771 [details] [review] Patch to add the ability to close a tab using the middle mouse button The last comment on this issue was back in 2007 with a clear message that this was not desirable in Gnome. Is it time to re-evaluate now that both Firefox and Chrome handle it in this way? Anyway, here is the patch for anyone who wants it.
Created attachment 168800 [details] [review] Better implementation of closing a tab using middle click The first patch was not suitable, because it would always close the active tab, not the tab which was clicked on. Essentially I think the first patch was in the wrong place altogether. This patch only changes gedit-tab-label.c and the click handler simply sends the same "CLOSE_CLICKED" signal that the close button sends.