Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Newly opened files should only open in an existing window if they're in the same directory as the other file opened there; otherwise should open a new window. #18770

Closed
raystubbs opened this issue Feb 1, 2019 · 4 comments

Comments

@raystubbs
Copy link

It gets really annoying when I open a new file from another project/directory and it gets mixed in with the existing, but completely unrelated tabs. It should open in a different window if it's from a different directory.

@raystubbs raystubbs changed the title Newly opened files should _only_ open in an existing window if they're in the same directory as the other file opened there; otherwise should open a new window. Newly opened files should only open in an existing window if they're in the same directory as the other file opened there; otherwise should open a new window. Feb 1, 2019
@50Wliu
Copy link
Contributor

50Wliu commented Feb 1, 2019

Should be fixed by #18608 and be available starting with the next beta! @smashwilson please let me know if I'm wrong.

@50Wliu 50Wliu closed this as completed Feb 1, 2019
@smashwilson
Copy link
Contributor

Yeah, with #18608, if you open a new file from the command-line:

  • If you don't provide --add, Atom will always open a new window containing only the named file;
  • If you do provide --add, Atom will always open the named file in an editor in an existing window with a project folder containing its path, or the most recently opened window if there are none.

If you see this not being the case after 1.36.0-beta0, please let us know 🤞

@raystubbs
Copy link
Author

raystubbs commented Feb 1, 2019 via email

@lock
Copy link

lock bot commented Jul 31, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants