-
Notifications
You must be signed in to change notification settings - Fork 301
Conversation
add option to create new window to top menu bar
Awesome, thanks for looking at this @Akin909 ! Impressive turnaround time on the PR 😄 I just tried it out, and it's working great! Agree with your list of items for 1-3, and that they could potentially be handled down the road. It's great that we have the 'New Window' option.
I believe this is actually the 'right' behavior on OS X - there was some discussion around this on #483 . And when I tried on other apps (atom, vscode), it did that full-close behavior. For 2, one item I was looking at was this: #67 It's titled "multi-monitor support" but really it's just about quickly switching open instances of Oni. I thought it'd be cool if we could extend the window navigation commands (like Nice work! I'll bring this in once the builds are complete. |
@bryphe 👍 . Re. windows closing if that standard behaviour i'll leave that be. |
Definitely! The browser window has a I started on some ideas here a looong time ago - in the main process, I had this code to focus different instances: Line 22 in e0c84b9
And then the entry point, from the browser-side, was really simple here - just sending the oni/browser/src/Services/MultiProcess.ts Line 10 in e0c84b9
So I think it wouldn't be too crazy to implement the navigation - we'd just have to tell the main process which direction we want to go, and then in the main process, see if there is an Oni window that matches (like, if we move right, check for that
Ah interesting, I guess this might be a case where having those 'persisted' settings would be helpful - we could persist the last X opened files/folders, and show them there? I wonder if there is something special about them, or if they would be additional menu items we'd add to our dock menu? |
Anyway I'll go ahead and bring this in as it addresses #1111 . Thanks again for your work on this, @Akin909 ! |
@bryphe following the discussion in #1100 and the link you posted I had a go at adding the functionality of opening a new window to the top menu bar (and to the dock for mac os). Tbh I was little concerned that implementing this would be more involved, i.e. managing the state of multiple windows etc. but it all seems to work fine (which I believe is largely due to your foresight in handling focusing of instances etc. in
main.ts
).Things that it currently lacks that I imagine might become issues down the line are
Tbh I personally think those are both nice to haves and the menu or clicking each instance works well, and mac os, linux and i'd imagine windows all have several window manager programs, but perhaps thoughts for the future