Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run OS X Mountain Lion and open files in four ways:

  • the Finder
  • Alfred file search
  • the open command typed directly into the shell
  • shell scripts that run open and are triggered by applications like Alfred or Keymando

My primary editor is MacVim. I observe that sometimes when I open a file, it opens in the current window of MacVim. In other instances, it will open a new window. There is a similar phenomenon when running web searches from Alfred. Sometimes, a new tab will open up in a preexisting Safari window; other times it opens in an entirely new window. In Safari preferences, I have "open pages in tabs instead of windows" set to "Always".

I can't figure out what the pattern is here. Can anybody explain how it is that the system decides whether to open in a new or preexisting window, and how to make it always use the preexisting one?

share|improve this question
I don't know about MacVim, but Safari opens a new window if for example you have edited the text on the location bar or some sheet is shown. – user495470 Feb 28 '13 at 9:59
Aha! That's something. I don't really get the point of it though-- is there any way to disable it? – Sean Mackesey Feb 28 '13 at 15:47

You must log in to answer this question.

Browse other questions tagged .