Skip to content

Can't open "New Window" in separate WM managed window on OSX 10.13.6 High Sierra #758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dossy opened this issue Oct 9, 2018 · 3 comments

Comments

@dossy
Copy link

dossy commented Oct 9, 2018

Installed MacVim via Homebrew cask:

VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 14 2018 05:28:49)
macOS version
Included patches: 1-280
Compiled by [email protected]

Using Cmd-N to open a New Window creates a new tab inside the existing window as a tab, not as a separate GUI window. This error is written to the console at the same time:

Oct  9 12:15:53 Serenity com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.Vim.22193" tried to register for endpoint "/applications/macvim.app.vim" already registered by owner: com.apple.xpc.launchd.unmanaged.Vim.22164

I can click-and-drag the window "tab" from the window and pull it out into its own separate GUI window.

These window tabs can have their own tabpages (which I can create with Cmd-T or :tabnew). It's as if the newly created window was created as an OS-managed tab into the parent MacVim GUI window, instead of its own standalone GUI window.

Here's a screenshot of the symptom:

image

@dossy
Copy link
Author

dossy commented Oct 10, 2018

Update: I found the cause of this problem!

Open folders in new window (high Sierra)

The culprit is in "System Preferences > Dock > Prefer tabs when opening documents" - it was set to "Always" (and I'm not sure if that's the default setting or not) ... if I set it to "Manually" then I get back the New Window behavior I was expecting - both in MacVim and in Finder - and I'm betting it'll "fix" the problem in other places as well.

Going to close this issue, but man ... this was annoying as hell ...

@ychin
Copy link
Member

ychin commented Nov 24, 2018

@dossy I know this issue has been closed, but #788 will fix this properly. MacVim will disable native tabs so you won't see this weird mix of native tabs and Vim tabs again and feel free to set your "Prefer tabs when opening documents" preference back to whatever you want.

@dossy
Copy link
Author

dossy commented Nov 24, 2018

@ychin - Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants