Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@sonph

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).

Activity

  1. 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
  2. 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
  3. dylanjacob commented on May 13, 2014

    @dylanjacob

    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.

  4. adrianocr commented on May 16, 2014

    @adrianocr

    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.

  5. ceyhunkerti commented on May 18, 2014

    @ceyhunkerti

    +1

  6. shufengh commented on May 18, 2014

    @shufengh

    +1

  7. SK83RJOSH commented on May 19, 2014

    @SK83RJOSH

    +1

  8. izuzak commented on May 21, 2014

    @izuzak
    Contributor

    Also #1676

  9. dcunited08 commented on May 22, 2014

    @dcunited08

    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.

  10. izuzak commented on May 22, 2014

    @izuzak
    Contributor

    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).

  11. paulholzdev commented on May 30, 2014

    @paulholzdev

    push

  12. zamabraga commented on Jan 14, 2016

    @zamabraga

    +1

  13. mariozaizar commented on Feb 4, 2016

    @mariozaizar

    +1

  14. cclough commented on Jan 2, 2017

    @cclough

    is this still not possible?

  15. kasper9n commented on Jan 25, 2017

    @kasper9n

    @cclough Yep, apparently, which is amazing. I cannot believe this hasn't been done yet

  16. foxpy commented on Apr 13, 2017

    @foxpy

    Atom opens a new window for file that is outside of current working directory

    My solution is to keep C:\\ or / as working directory. Bad, but convenient for me.

  17. mariozaizar commented on Apr 13, 2017

    @mariozaizar

    I've created a new alias to alias a='atom -a .' to avoid this problem. Let me explain:

    # This opens two atom instances windows
    atom ~/Desktop/
    atom ~/Downloads/
    
    # This keeps one atom instance.
    atom -a ~/Desktop/
    atom -a ~/Downloads/
    

    screen shot 2017-04-13 at 1 00 14 pm

  18. lock commented on Apr 2, 2018

    @lock

    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!

  19. locked and limited conversation to collaborators on Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions