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.
How do I make atom open the working directory by default? #6873
Recently atom has changed to require atom . instead of just atom to open the working directory. This has been a really frustrating change. How do I make atom open the working directory without the . argument?
make a shell alias and add it to your ~/.bashrc or ~/.bash_profile
Yeah, this is the solution that I recommend for people who prefer the old behavior.
I'm sorry for changing the shell command's behavior out from under you @CharlesSocial. The reasons that we felt it was right to make this change before Atom 1.0 are:
It makes a commonly-desired behavior available from the command-line
The old behavior is still very easy to achieve, using atom .
It matches the behavior of other popular editors: Sublime Text and TextMate
What do you guys mean by "open the previous setup"? Right now atom always opens a new file window. I'm not sure I understand the decision because this seems much less convenient than opening the working directory.
Maybe other editors wotk this way, but it's a bad decission. It would make sense to restore the last session when executing from an app launcher like Gnome Menu, but from command line, common sense dictates that by default it will open on the current directory. The best approach to this is to add a "restore session" command line argument and launch Atom from Gnome Menu with it.
Honestly the alias doesn't work well at all, and setting up a bash script is fine, but feels a little ridiculous.. If there are people on both sides of the fence then this should be a checkbox setting.
Note: Saving the open files is not important, I just found it really convenient to be in the working directory project.
I suppose my comments sound a little negative when looking back at them. I really like atom and think you guys are doing an awesome job. With anything though, it's really aggravating when simple and super common behavior like this is changed for seemingly arbitrary reasons.
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
mnquintana commentedon May 20, 2015
You could always make a shell alias and add it to your
~/.bashrcor~/.bash_profile:jrjohnson commentedon May 20, 2015
👍 Using an alias doesn't work because I also do
atom /foo/somefile.txtmaxbrunsfeld commentedon May 20, 2015
Yeah, this is the solution that I recommend for people who prefer the old behavior.
I'm sorry for changing the shell command's behavior out from under you @CharlesSocial. The reasons that we felt it was right to make this change before Atom 1.0 are:
atom .maxbrunsfeld commentedon May 20, 2015
@jrjohnson To support your desired behavior, you might want to make a shell script like this:
chloerei commentedon May 21, 2015
vimwill open in current directory. I think it's annoying if I have to enterls .instead ofls.I set
alias a='atom .'that I can use original command if necessary.mark-hahn commentedon May 21, 2015
How does vim re-open the same setup?
On Wed, May 20, 2015 at 8:46 PM, Rei [email protected] wrote:
chloerei commentedon May 21, 2015
@mark-hahn vim has a
mksessioncommand to store andsourceto restore, but I'm not use this function, I like to open with a clean session. http://stackoverflow.com/questions/1642611/how-to-save-a-session-in-vimmotam commentedon May 21, 2015
See #6605 as well.
CharlesSocial commentedon May 21, 2015
What do you guys mean by "open the previous setup"? Right now
atomalways opens a new file window. I'm not sure I understand the decision because this seems much less convenient than opening the working directory.piranna commentedon May 21, 2015
Maybe other editors wotk this way, but it's a bad decission. It would make sense to restore the last session when executing from an app launcher like Gnome Menu, but from command line, common sense dictates that by default it will open on the current directory. The best approach to this is to add a "restore session" command line argument and launch Atom from Gnome Menu with it.
CharlesSocial commentedon May 21, 2015
Honestly the alias doesn't work well at all, and setting up a bash script is fine, but feels a little ridiculous.. If there are people on both sides of the fence then this should be a checkbox setting.
Note: Saving the open files is not important, I just found it really convenient to be in the working directory project.
I suppose my comments sound a little negative when looking back at them. I really like atom and think you guys are doing an awesome job. With anything though, it's really aggravating when simple and super common behavior like this is changed for seemingly arbitrary reasons.
lock commentedon Jan 22, 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!