When opening a file in a new window, the new window includes all files from previous active window. Why?


#1

Hello!

When opening a file in a new window, the new window includes all files from previous active window. Why? I only want to the selected file to be in the new window.

How to reproduce:

This happens with either mouse or command line commands (see picture).


How to always open files in new Window
#2


#3

Because you’re opening a new window in the same folder, and Atom remembers what files you have open.

If you right-click on a tab and select Split Down, Atom will tile itself for you.


#4

Thanks for the replies. I set Restore Previous Windows On Start to no and now I can now get the desired behavior. Doing

$ atom -n file1; atom -n file2; atom -n file3

opens each file in a new window by itself.


#5

Thanks for the feedback. I would think that -n would not bring up all previously opened files, regardless on what is set to Restore Previous Windows On Start.

An alternative is
atom -n fileName --clear-window-state
.
.
.
.
Strange behaviour - with messing around with opening in the command line, the SETUP page landed in the tree-view drawer. I have tried to get this again, but could not (yet).