Repository navigation
Open file paths in focused window - #3355
Conversation
|
People's heads are going to explode |
|
💥 |
|
Ha, indeed! It's been one of those "I'm not going to switch to Atom until..." kind of requests. |
|
💥 +1 |
|
@F0x06 which commit did you build against? |
|
How does it behave when you start atom and then opening a folder? Will it open it in the current "unused" window? As far as I understood "Folder behavior changes" it will open a second window, right? |
|
💥 |
Thanks for bringing this up, I think it might make sense to change this now in this PR, so that when you open a folder from an untitled window, it reuses the untitled window instead of opening a second window. |
|
👍 |
|
@kevinsawicki Good work! |
|
Okay, I have made some folder behavior changes, untitled windows are now reused when opening a folder path. Please see the details and GIFs in the updated issue body. |
|
Thanks for including opening a folder with this change! It really wouldn't have made sense without it. Suddenly, I can't wait for #770, though. |
awesome! Thanks for updating untitled windows behavior! |
|
👏 Finally! Do I understand it correctly: I have a project open and I use |
|
@maschs Yes :) |
|
Amaaziiing!! :) great work! |
|
👍 |
|
👍 this is the thing I need to switch to Atom. |
1abdbcb to
fb53f85
Compare
This ensures the window where the file is dropped is used to open that file into even when that window does not have focus.
Untitled windows will now have their project path set when a folder is opened.
|
sweet |
|
@laktak Would you mind opening up a new issue for that? thanks |
|
Thanks :) |
|
This pull request has changed my life. @kevinsawicki and any other devs who worked on this, I can't contain my love for you right now. 💥 ❤️ |
|
☝️ This dude's heart exploded! |
|
😄 |
|
@rayman22201 Thanks for the feedback, always appreciated 🌞 |
|
@kevinsawicki great, thanks! |
|
take no offence but, I NEED TO come back to the previous behaviour !!!! there is a option ins the preferences of any way? 1- when i open a file from a project I want to open this project I dont want this new mixed salad (from the finder and / or cyberduck -- not terminal) |
|
@dfaure1 You can open a folder if you would like a new window. |
|
that seem to resolve my issue, thank a lot! |
|
i wish that when atom start,it can open the last opened folder or when i open a folder in a new window ,it can open the tree-view automatically , and close the untitled file ,maybe coffee script can do that,but i don't know how to do it, maybe that is a bug |

Summary
Instead of opening file paths in a new window based on the file's parent directory, open file paths in the current window.
Also open folders in the current window when the current window doesn't already have a project path. This will affect untitled windows that were launched from the dock or by pressing
cmd-shift-N.You can still always force a new window from the command line by running
atom -n package.jsonoratom --new-window package.json.Multi-folder project support is still planned though via #770.
File behavior changes
Files opened using the
atomcommand open in the currently focused windowDropping a file onto a window opens it in that window
Selecting a file from the path chooser (cmd-o) opens that path in the current window
Files dropped on the Mac OS X dock icon will open in the last focused window
Folder behavior changes
Folders opened using the
atomcommand will open in the currently focused window if it doesn't already have a project pathDropping a folder onto an untitled window sets that window's project path to the dropped folder's path
Selecting a folder from the path chooser (cmd-o) opens that folder in the current window if it doesn't already have a project path
Closes #1722