Worlds Colliding Violently

Worlds Colliding Violently

Programming, Drumming, Cooking, Cars, Mozilla, and the Trials & Tribulations of a Geek from New Jersey.

Worlds Colliding Violently RSS Feed
 
 
 
 

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:

  1. Find a link I want to open in a tab, and middle-click on it. The page loads in a new tab. 
  2. When I’m done with a tab, I middle-click on the tab itself in the tab bar to close it. 
  3. 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):

  1. Find a link I want to open in a tab, and middle-click on it. The page loads in a new tab. 
  2. 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. 
  3. 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:

  1. Type about:config into the address bar. 
  2. Scroll down in the huge list to section beginning with the letter M. 
  3. 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!

7 Responses to “Customizing Firebird Middle-click Behavior”

  1. 1
    Dominik Scherer:

    Awesome! This is exactly what annoyed me in Linux Mozilla and I changed it right away. Thanks for letting me surf happily ever after…

  2. 2
    Richard:

    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.

  3. 3
    ScOp3:

    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.

  4. 4
    someguy:

    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.

  5. 5
    Mike:

    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! :)

  6. 6
    meowsqueak:

    For side-button configuration, this might be of some help:

    http://forums.gentoo.org/viewtopic.php?t=98028

  7. 7
    Frankie:

    Awesome sentiment! I totally agree with you!

Blogroll

 

August 2003
S M T W T F S
« Jul   Sep »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Meta