Open in new window if no windows exist on this desktop

Brian Kim il y a 8 ans mis à jour par Nimi Wariboko Jr il y a 8 ans 1
I know open_files_in_new_window controls whether or not files open in a new tab or a new window. However, in OS X with virtual desktops, it would be helpful to have an option to always open files in the current desktop, spawning a new window if there are no active windows there.
Likewise, if right click the doc icon there should be option to open a new window.