qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.62k stars 218 forks source link

vimr opens a second window on the original desktop after a desktop switch #970

Open faunaee opened 2 years ago

faunaee commented 2 years ago

I'm using an M1 Pro MacBook Pro with macOS Monterey 12.4 and multiple desktops configured, and running vimr 0.42.0 (20220703.104316)

When I have a vimr window open on one desktop, switch to another desktop, and start a new vimr window with vimr -s <file>, the new window opens on the original desktop rather than the one I'm viewing.

Repro steps:

  1. Configure at least 2 desktops.
  2. Open a terminal on desktop 1.
  3. vimr -s <file1>
  4. Switch to the other desktop.
  5. Open a terminal on desktop 2.
  6. vimr -s <file2>

At this point, two vimr windows are on desktop 1, not one vimr window on each desktop. This is not the desired behavior.

Is there any workaround? If not, please consider this as a feature request. I'm okay with having to set some configuration to get the desired behavior.