akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.4k stars 63 forks source link

macOS: Support multiple OS windows under one top level process #357

Open matthewd opened 2 years ago

matthewd commented 2 years ago

The standard macOS Dock behaviour depends on the assumption that all of a given application's windows are grouped together, e.g. allowing <Cmd-Tab> to cycle between applications, and <Cmd-`> to cycle between windows of the active application. (Honestly, the ability to separately cluster my editor and terminal sessions in this way is the main reason I prefer a GUI Vim.)

Goneovim currently starts entirely separate instances (both when run from the command line, and when using the 'New Instance' option on the dock icon).

I guess this is probably a big change, so may not be practical, but IMO it would be ideal if it was able to behave in the more OS-standard fashion -- perhaps by adding a singleton parent process that could handle some minimal OS communication and then leaving the bulk of the activity to existing-shaped children, somehow?

mars0i commented 1 year ago

This is not what you're requestiong, @matthewd is requesting, and you may know this, but in case it's helpful, it's possible to open floating windows as children of a main window: https://github.com/akiyosi/goneovim/wiki/FAQ#how-can-i-create-an-external-float-window These floating windows can then be dragged to a desired location on the screen. They are not regular nvim windows for editing though. You can't edit in them, and if you type :, the prompt appears in the main window not in the float window.