Skip to content

Support multiple windows #3606

Open
Open

Description

@iBobik

Description

Previost native version had option to open new window what was handy for working on multiple repositories at once. Electron version does not support it, so I have to switch between project in one window what is in some use-cases very uncomfortable.

Work around is to keep old native version and run it if I need to work on multiple repos simultaneously.

Version

GitHub Desktop version: 1.0.10

OS version: macOS High Sierra

Expected behavior: Menu option File → New window will be there

Actual behavior: Menu option File → New window is not there

Reproduces how often: Always

Activity

  1. changed the title [-]Add File → New window option (macOS)[/-] [+]Support multiple windows[/+] on Dec 14, 2017
  2. shiftkey commented on Dec 14, 2017

    @shiftkey
    Member

    Electron version does not support it, so I have to switch between project in one window what is in some use-cases very uncomfortable.

    This is partially true. Electron supports running the application as a single instance, which we've enabled for Desktop here.

    This change was added way back in #35, and we haven't had much feedback about this being missed (both the classic Mac and Windows apps did this). And I thought we were tracking this elsewhere, but I couldn't spot a relevant issue.

  3. shiftkey commented on Dec 14, 2017

    @shiftkey
    Member

    This leverages app.makeSingleInstance so that Windows will pass the OAuth callback to the original instance (rather than launching a new one).

    Ah, I think this might be part of the issue. With multiple windows it's not clear where to route the OAuth callback received from the OS (on Windows at least, I'm not sure about macOS).

  4. iBobik commented on Dec 15, 2017

    @iBobik
    Author
  5. shiftkey commented on Dec 26, 2017

    @shiftkey
    Member

    On macOS you will probably save somewhere what instance requested Oauth and then pass callback to instance what was last.

    We don't get this for free with Electron, and would require some rework of our main-process.ts to broadcast this message to all windows (which we don't currently track) which will likely uncover other places where we rely on this assumption.

    We also rely on this "single instance" rule for other things - updating the app on Windows for example.

    For now, I'm going to mark this as "future proposal" and close it out - the core team has other priorities on the roadmap in the near term, so this won't be a priority unless someone from the community cares enough to dig into the work required.

  6. ledermann commented on Feb 26, 2018

    @ledermann

    One thing to notice: Without having the "multiple windows" feature, on macOS we can't use GitHub Desktop on multiple Spaces within Mission Control.

    While working on multiple projects concurrently, I like to have a separate Space for every project (containing windows for Atom, Chrome, iTerm2 etc.). But because GitHub Desktop can live at only one Space at a time, I always have to move GitHub Desktop to the right Space for just doing a commit, which is a little bit annoying.

  7. percyhanna commented on Feb 27, 2018

    @percyhanna

    I was going to recommend this old trick:

    open -na "GitHub Desktop"

    But, it doesn't seem to work. app.makeSingleInstance must guard against that, unfortunately.

  8. TaylorDale commented on Mar 19, 2018

    @TaylorDale

    Would love to see this, I had a feeling there would be an already open issue on it but couldn't find it quickly. Killing me currently having to drag it back and forth between my desktops and then switching repos on windows 10 when developing the front and backend simultaneously

  9. walaura commented on Mar 29, 2018

    @walaura

    Argh! I made a dupe issue for this because I didn't look in the closed ones. 🙀 +1ing multiple window support. Would be ideal in a future release

  10. andybak commented on Jan 5, 2019

    @andybak

    Sitting here with a bit repo downloading. I'd quite like to do some bloody work while I'm waiting!

  11. j-f1 commented on Jan 5, 2019

    @j-f1
    Contributor

    @andybak You can switch to another repo in the app while one is downloading.

  12. 111 remaining items

  13. bhaller commented on Feb 22, 2026

    @bhaller

    Almost nine years and still no official support for this feature?..

    @DataGreed It's not planned... read the docs.

    Image

    Yes; but that is stupid, and we can at least complain here about it.

  14. MarinaM79 commented on Feb 22, 2026

    @MarinaM79

    Description

    Previost native version had option to open new window what was handy for working on multiple repositories at once. Electron version does not support it, so I have to switch between project in one window what is in some use-cases very uncomfortable.

    Work around is to keep old native version and run it if I need to work on multiple repos simultaneously.

    Version

    GitHub Desktop version: 1.0.10

    OS version: macOS High Sierra

    Expected behavior: Menu option File → New window will be there

    Actual behavior: Menu option File → New window is not there

    Reproduces how often: Always

  15. DataGreed commented on Feb 22, 2026

    @DataGreed

    It's not planned... read the docs.

    so what? If its still open and not closed, then it's at least in the backlog

  16. hewigovens commented on Mar 12, 2026

    @hewigovens

    Hey folks, I forked GitHub Desktop and added a minimal multi-window implementation on this branch. The patch ended up being smaller than I originally expected.

    You can now click “Open Repository in New Window” from the repository list to open a separate window, or run github repo/path. Each window uses the repository title, which also makes it easier to distinguish them from the Window menu in the menu bar.

    Image Image

    Video demo:

    Screen.Recording.2026-03-11.at.09.54.09.mov

    BTW, I also have a tip release signed with my Apple Developer account that I’ve been using myself and sharing with a few friends, so hopefully that helps validate the approach. You can try to install it with brew install --cask hewigovens/tap/github-desktop-tip

  17. bhaller commented on Mar 12, 2026

    @bhaller

    Hey folks, I forked GitHub Desktop and added a minimal multi-window implementation on this branch...

    This seems great! Have you submitted it as a PR that is marked as fixing this issue? (I don't know what a "tip release" is, so apologies if I'm being dumb in asking this. :->)

  18. hewigovens commented on Mar 20, 2026

    @hewigovens

    Hey folks, I forked GitHub Desktop and added a minimal multi-window implementation on this branch...

    This seems great! Have you submitted it as a PR that is marked as fixing this issue? (I don't know what a "tip release" is, so apologies if I'm being dumb in asking this. :->)

    I haven't submitted pr yet, i'm testing in daily basis to make sure it doesn't have critical issue, if more people want it, maybe we can tag maintainers like @tidy-dev to check it?

  19. hyeongnam-jang-sndk commented on Apr 25, 2026

    @hyeongnam-jang-sndk

    @hewigovens , Are you still testing to make sure it doesn't have an issue? Looks like you tested for one month or more. So I think you can raise PR.
    If you want to push it more safely, You can add "Enable Multiple Windows Feature" checkbox in "Option".

  20. hewigovens commented on Apr 28, 2026

    @hewigovens

    @hewigovens , Are you still testing to make sure it doesn't have an issue? Looks like you tested for one month or more. So I think you can raise PR. If you want to push it more safely, You can add "Enable Multiple Windows Feature" checkbox in "Option".

    Yes, still testing and the fork expands the scope gradually, now the changes include:

    1. Open in new window from repo list or from CLI: github <repo-path>
    2. Sign in/out across different windows
    3. Performance fixes -> still have some issues
      It feels unlikely being merged so i haven't raise the pr
  21. Yorkemartin commented on Jun 15, 2026

    @Yorkemartin

    would love to see this in a PR and merged! @hewigovens

  22. notxcain commented on Jun 15, 2026

    @notxcain

    9 years has passed and I don't care anymore. Switched to lazygit. Cheers everyone!

  23. hewigovens commented on Jun 25, 2026

    @hewigovens

    I opened PR #22382 for this finally, inspired by the recent added worktree feature.

  24. marked Multiple instances #22916 as a duplicate of this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot-plannedpitch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions