You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Atom opens a new window for file that is outside of current working directory #2005
Suppose that I open atom in my home directory. The working directory shown on the left is my home directory.
Now if I want to open a file that is not in the working directory then Atom opens a new window with that file and its directory. Same thing happens if I want to open a third file that is outside of those two working directories.
Is this the intended behavior? Because it's bugging me that I cannot open a file outside of the current working directory in the same window.
Also dragging the tab from one window to the other only creates an untitled tab in the destination window and the source tab remains in the source window. (I guess this is another issue, but it probably has something to do with Atom only allowing opening a file that is in the window's current working directory).
changed the title [-]Atom opens a new window for every folder that is outside of current working folder[/-][+]Atom opens a new window for every folder that is outside of current working directory[/+]on May 7, 2014
changed the title [-]Atom opens a new window for every folder that is outside of current working directory[/-][+]Atom opens a new window for file that is outside of current working directory[/+]on May 7, 2014
I'm coming from Sublime Text 2 and the default behavior there is every file in a new window. There is a configuration file that can be tweaked to make all files open in the same window.
I, too, would love to have files open in a new tab. It is absolutely crucial to my workflow. In the meantime I will continue using Sublime Text for this reason alone.
This is probably my single biggest annoyance and the reason why I can't use Atom full time. In looking through the code, it is very much related to #770 and #1722 and even #2203. It is very much designed to work with a single git project at a time and the project class handles everything in relation to that repo. A short-term solution would be change it so if they open a file, it only opens that file and behind the scenes opens an empty directory. If someone opens a directory, open it as it currently does.
Closing this in favor of #1722 which discusses the same issue (I'm trying to consolidate multiple issues discussing the same problem).
Thanks for the feedback everyone! 👏
Also, @sonph feel free to create a separate issue for this:
Also dragging the tab from one window to the other only creates an untitled tab in the destination window and the source tab remains in the source window. (I guess this is another issue, but it probably has something to do with Atom only allowing opening a file that is in the window's current working directory).
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!
Activity
[-]Atom opens a new window for every folder that is outside of current working folder[/-][+]Atom opens a new window for every folder that is outside of current working directory[/+][-]Atom opens a new window for every folder that is outside of current working directory[/-][+]Atom opens a new window for file that is outside of current working directory[/+]dylanjacob commentedon May 13, 2014
I'm in the same boat.
I'm coming from Sublime Text 2 and the default behavior there is every file in a new window. There is a configuration file that can be tweaked to make all files open in the same window.
adrianocr commentedon May 16, 2014
I, too, would love to have files open in a new tab. It is absolutely crucial to my workflow. In the meantime I will continue using Sublime Text for this reason alone.
ceyhunkerti commentedon May 18, 2014
+1
shufengh commentedon May 18, 2014
+1
SK83RJOSH commentedon May 19, 2014
+1
zoephilipps commentedon May 21, 2014
+1
See http://discuss.atom.io/t/dont-open-files-in-a-new-window/2916/21
izuzak commentedon May 21, 2014
Also #1676
dcunited08 commentedon May 22, 2014
This is probably my single biggest annoyance and the reason why I can't use Atom full time. In looking through the code, it is very much related to #770 and #1722 and even #2203. It is very much designed to work with a single git project at a time and the project class handles everything in relation to that repo. A short-term solution would be change it so if they open a file, it only opens that file and behind the scenes opens an empty directory. If someone opens a directory, open it as it currently does.
izuzak commentedon May 22, 2014
Closing this in favor of #1722 which discusses the same issue (I'm trying to consolidate multiple issues discussing the same problem).
Thanks for the feedback everyone! 👏
Also, @sonph feel free to create a separate issue for this:
paulholzdev commentedon May 30, 2014
push
zamabraga commentedon Jan 14, 2016
+1
mariozaizar commentedon Feb 4, 2016
+1
cclough commentedon Jan 2, 2017
is this still not possible?
kasper9n commentedon Jan 25, 2017
@cclough Yep, apparently, which is amazing. I cannot believe this hasn't been done yet
foxpy commentedon Apr 13, 2017
My solution is to keep
C:\\or/as working directory. Bad, but convenient for me.mariozaizar commentedon Apr 13, 2017
I've created a new alias to
alias a='atom -a .'to avoid this problem. Let me explain:lock commentedon Apr 2, 2018
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!