Customizing Firebird Middle-click Behavior
I’ve been using Firebird since the first builds were available for Windows and Linux, and Mozilla (SeaMonkey) for far longer. One of the things that always irritated me about both products, however, was the fact that the Linux clients acted different from their Windows counterparts, in regards to middle-clicking.
Before I continue onward, I should say that I mostly understand why these differences exist. X-Windows has a fundamentally different method of copying and pasting than Windows or Apple systems; you can select text to place it on the clipboard, and middle-click to paste it. I won’t go into how irritating this can be, especially when you want to select text to replace with clipboard text (the act of selecting text blows away what you already have on your clipboard, making your effort futile).
That said, here is how I use Firebird middle-clicking on Windows:
- Find a link I want to open in a tab, and middle-click on it. The page loads in a new tab.
- When I’m done with a tab, I middle-click on the tab itself in the tab bar to close it.
- If I accidentally middle-click in the page, nothing happens. This is expected behavior to me.
Instead, this is how Firebird under Linux worked (and works, by default):
- Find a link I want to open in a tab, and middle-click on it. The page loads in a new tab.
- When I’m done with a tab, I would attempt to middle-click on it in the tab bar, but this would do nothing. So instead, I would have to click with the secondary mouse button, and select “Close Tab” from the available selections. This is much slower than a middle-click.
- If I accidentally middle-clicked in a page, it would attempt to load whatever was on my clipboard. That is to say, if I had “www.ibm.com” on my clipboard, it would load IBM.com. If I had a non-URL on my clipboard, such as a SQL query, it would still try to load that as a URL, and then give me an error when it can’t. The best part is that if it did load a URL, and I was in the middle of filling out a form (read: buying something online), I’d potentially have to start over again, or risk re-posting to the previous page.
Needless to say, steps 2 and 3 on Linux annoyed the crap out of me. Fortunately, there is hope.
Several builds ago, the “about:config” feature was added to Mozilla and Firebird, letting you tweak every setting the browser has to offer (be wary, it’s a long list!). Fortunately, I was able to find the controls that caused the behavior I was seeing, and change them. If you’re on Linux, and want to change this behavior, here are the steps to follow:
- Type
about:configinto the address bar. - Scroll down in the huge list to section beginning with the letter M.
- Find the entry
middlemouse.contentLoadURL, double-click on it, and change the value to “false”.
Ta-da! Now steps 2 & 3 listed above work on Linux the way it works on Windows. As an added bonus, if you want the ability to paste your clipboard contents on Windows with a middle-click, you can change the middlemouse.paste option to “true”. Thanks to these two tweaks, my Firebird builds act exactly the way I want them to, across two platforms. Go, Firebird, Go!
September 24th, 2003 at 12:38
Awesome! This is exactly what annoyed me in Linux Mozilla and I changed it right away. Thanks for letting me surf happily ever after…
October 28th, 2003 at 16:27
Fantastic - this is something that has long annoyed me too. I’d not looked-into it to see what URL Mozilla was loading either, so it seemed totally random to me. I think this is a feature that users should have to turn-on if they want it, not turn-off if they don’t.
November 4th, 2003 at 5:42
Happy that i found this solution! Was really annoyed buy this behavior as well. Only thing left is the thumb buttons for back and forward functionality.
January 21st, 2004 at 21:32
I recommend ^W to close the window. Faster than targetting the tab.
This keeps the middle-click in page function of google searching on your buffer.
January 22nd, 2004 at 21:14
I use Ctrl+W (or Apple+W) when my hands are on my keyboard. However, I use the mouse with my left hand, and both of those combinations are more left-hand oriented, so if my left hand is on the mouse, it’s far easier for me to middle-click the tab.
To each their own though!
March 9th, 2004 at 15:00
For side-button configuration, this might be of some help:
http://forums.gentoo.org/viewtopic.php?t=98028
September 17th, 2004 at 18:20
Awesome sentiment! I totally agree with you!