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

Creating a new window from menubar duplicates an existing window #41

Closed
dashed opened this issue Jan 3, 2015 · 8 comments
Closed

Creating a new window from menubar duplicates an existing window #41

dashed opened this issue Jan 3, 2015 · 8 comments
Labels

Comments

@dashed
Copy link

dashed commented Jan 3, 2015

Creating a new window duplicates an existing window. I just want to create a new window with no state.

Useful for setting new tree view since the following isn't possible: atom/tree-view#185

EDIT: see #41 (comment)

@mpeterson2
Copy link
Owner

How are you creating the new window? (keyboard shortcut, command pallete?)

@dashed
Copy link
Author

dashed commented Jan 7, 2015

On interesting. Creating a new window via keyboard shortcut and command palette creates an empty window.

But from the menubar, File > New Window, duplicates the current window.

I'm using Atom Version 0.167.0 (0.167.0)

@dashed dashed changed the title Creating a new window duplicates an existing window Creating a new window from menubar duplicates an existing window Jan 7, 2015
@mpeterson2
Copy link
Owner

Hmm your right. When the command application:new-window is triggered, the project path is cleared, so it is not reopened on the next window opening. However, the menubar version strangely doesn't seem to trigger application:new-window...

@mesosteros
Copy link

Yup, just tested this out. I was getting frustrated about opening a duplicate.
It would be great to have the new window option in File not duplicating the current project like the shortcut.
If I want to start a completely new blank project, I don't want to see the old one's file, file tree and contents.
And not all users remember the New Window shortcut or find pratical to have access to such a simple feature throught the Command Palette.

@dashed
Copy link
Author

dashed commented Jan 9, 2015

@mpeterson2 Could this be a regression in atom core?

@mpeterson2
Copy link
Owner

Yeah, I feel like Atom core should be triggering application:new-window. I don't think it should work any differently from using the command palette or the shortcut.

@mpeterson2 mpeterson2 added the bug label Feb 3, 2015
@msssk
Copy link

msssk commented Mar 6, 2015

It would be great if save-session could skip restoring the session in certain situations, such as "File -> New Window" from within Atom, or in the case of launching Atom from the command-line with parameters provided (like typing "atom ." to launch Atom with the current folder opened).

@mpeterson2
Copy link
Owner

This issue should be resolved now.

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

4 participants