Skip to content

Getting Safari to open new tabs instead of new windows

January 28, 2010

In general, I always try to favour Apple over !Apple. As such, there aren’t many non-Apple applications installed on my macbook; Firefox, Eclipse and Picasa being the main three. I’d like to use Safari, if only I could get it to favour opening links to new pages in tabs, and not in windows. Well, it turns out that I can.

All I needed to do was open a terminal and execute this command:

defaults write TargetedClicksCreateTabs -bool true

I’m not entirely sure why Safari have chosen to make it so difficult to set an option that’s a checkbox in Firefox, but, meh, it’s done now.

5 Comments leave one →
  1. January 28, 2010 8:52 pm

    It’s a good job that you don’t use your laptop macbook for the internet, programming or photography.

    That wasn’t supposed to be bitchy, I’m one of the few people that love Apple and yet still don’t own one. It just seems a shame that for the three things you (and I) do most on a computer there isn’t “an [Apple-written, best in category] app for that”.

    Actually, that was a stupid thing to write. iPad looks like it’ll be the best browsing experience, and Apple dominate photo editing and management software. It’s too late to delete it now.

  2. January 28, 2010 10:03 pm

    I’m not sure about this whole ipad thing. Typing on an iphone, whilst arguably best-in-class, is still quite a way from being as comfortable and effective as a keyboard (although I guess I’m not as well-practiced as those in my office who spend all day on their iphones playing Connect Four – you know who you are). The whole thing just seems to be trying just a little too hard to push touchscreens on the masses. I mean, I want to want an ipad, it’s just that I don’t want one, and I’m not sure why. Anyway, I thought we were talking about my macbook…

  3. January 29, 2010 11:13 am

    Going back to your primary point; it doesn’t bother me that there isn’t “an [Apple-written, best in category] app for that”, so long as there isn’t a Windows-only, best in category app for that.

    I use Eclipse at home because I use Eclipse at work; I’ve no idea how good an environment Xcode is for Java development (and indeed whether it supports it at all) but, quite frankly, I’m glad that I don’t need to find out. Sure, I’m still getting used to switching between the Microsoft keyboard layout in work and the mac keyboard layout at home when it comes to all the Eclipse shortcuts, but that’s nothing compared to the context-switching I’d have to do if I were still working* with Visual Studio (bleugh) in work and Xcode (or equivalent) at home.

    *I say working, but every time I get put back on a C++ project at work, I feel like I’m having to code with several body-parts missing. Some of it’s got to do with the differences between Eclipse and Visual Studio, but I suspect that most of it’s to do with the differences between a 2010 version of Eclipse and a 2003 version of VS. This is what you get when your build is IDE-dependent; we have more modern versions of VS available, it’s just that we can’t upgrade the build to use them.

    Oh, and Picasa’s only on the macbook because I wanted to find out how well it worked on OSX before I ditched the desktop and transferred my existing Picasa library to a mac mini (shh, don’t tell the wife).

    As for Firefox, I still think it’s better than Safari (even with open-links-in-tabs enabled). I just need Safari to work as smoothly as possible so that my wife and I don’t have to share Firefox, and I don’t have to keep signing her out of things every time I want to sign into things. Although there’s probably a Firefox extension for that…

  4. January 29, 2010 3:39 pm

    Since we’re screaming off topic, I may as well continue…

    A build that depends on the IDE sucks. Many moons ago when I was unleashed from uni into the real world I introduced a dependency on an eclipse jar to the test code. Quite rightly, my boss noticed this by nosing through the CVS history everyday and told me off. I tried to defend myself, but was quickly reassured that I was an idiot.

    Having everyone in a team use the same IDE has benefits, but people should definitely be free to use whatever environment they are happiest in. This has the nice side-effect that the build won’t be dependent on an IDE for long without someone noticing.

    As for multiple users sharing Firefox, I try to encourage my (effective but not legal) wife to log in to the OS with her own user account rather than just hijacking mine. Of course this never happens but it’s OK because in my constant security paranoia I enable the Firefox “master password” on every Firefox I use (a feature I think should be enabled as default when you install Firefox).

    Another option is to use the built in firefox profile manager (I think you type “firefox -profilemanager” when FF is not already running) and then you could just have 2 firefox shortcuts on your desktop. His ‘n’ Hers. In fact, I don’t know why I don’t just do that at home… Oh yes, that’s right, because if there is a FF open already, she’ll just use that one anyway 😉

  5. January 29, 2010 3:43 pm

    So, basically what you’re saying is that I can go to a lot of effort to reach a solution that is less satisfactory than my current one…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: