2009/7/14 David Alan Hjelle: > > I did notice, however, that there is a preference that probably > affects this, but I'm a bit unsure how it ought to be set for the > behavior I want. It's in General → Open Files from Applications: > > I have it set to "In the current window" "with a tab for each file." > as that is the behavior that I want within a single space. > > It appears that if I set it to "In a new window" "with a tab for each > file" that the double-click stays within the current Space as desired, > but, of course, subsequent double-clicks open up new windows. > > I *think* that most people would want the "in the current window" > options to only hold true while there is a current window in the > current space, but I can't claim to be an omniscient user. > > Does toggling that option allow you to reproduce the bug?
Ok, now I understand what's going on. Yes, with that option enabled it will switch Spaces for me as well. But as you probably realize this is by design -- since when "current window" is selected the file will open in the "current window" (duh) regardless of the Space the window is in. It kind of sounds like it could maybe perhaps sort of make sense to not switch Spaces on this option, but I can think of reasons why you wouldn't want to either: E.g. you have Xcode on one space and your MacVim editor window on another Space and use MacVim as the "external editor" for Xcode with this option enabled. On the other hand, my first thought is that maybe you should not use this option to begin with? Does anybody else who uses the "current window" feel like weighing in on the issue as to whether or not MacVim should ignore this option if there is no MacVim window on the current Space? At any rate, this is all academic at this point in time since I don't know if it is even possible to check which Space a window is on. Does anybody else know of an API that lets you do this (a quick search didn't reveal anything, but I did not look that hard)? Björn --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
