Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoking 'New Window' re-opens the 'saved' open window list #18

Closed
uberbrady opened this issue Sep 21, 2014 · 5 comments
Closed

Invoking 'New Window' re-opens the 'saved' open window list #18

uberbrady opened this issue Sep 21, 2014 · 5 comments
Labels

Comments

@uberbrady
Copy link

When I hit Command-Option-N (New Window, from the File Menu), Atom tries to reopen the last project I had open instead of opening a new window.

@mpeterson2
Copy link
Owner

Yes this is something that should be fixed. Similar to #17, it doesn't seem possible to tell whether your opening Atom or just opening a new window within Atom at this time.

For now, some workarounds would be to disable restoring projects or to open your projects directly instead of using Cmd+Opt+N. I know it'd be nice to have this fixed, but I'm not sure if it can be at this time.

@mpeterson2 mpeterson2 added the bug label Sep 22, 2014
@lstroud
Copy link

lstroud commented Oct 14, 2014

+1
If it isn't fixable, could you provide a different shortcut to open a blank/new window?

@mpeterson2
Copy link
Owner

I just thought of a way to fix this actually... Instead of trying to detect if a new window was opened vs a new instance, the Project setting could just be cleared when you open a new window. Now to find out if I can hook into that or if I have to create a new shortcut....

@mpeterson2
Copy link
Owner

I just posted a new version based off of e3e234a. It will no longer open the previously opened window.

Now the question is: Should it open the previously opened files that weren't part of a project, or should they be forgotten?

@mpeterson2
Copy link
Owner

I'm going to leave them there for now. That just seems better than just throwing the data away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants