I'm on a Mac (MBP) and previously, I had set my Finder preferences to open any app in a new tab (open folders in tabs instead of a new window). It got Atom Editor to open new/diff projects in a tab vs a new window.
My normal workflow might be something like this in iTerm: atom .
then atom ../proj
This was working up until today. I've even restarted my Mac to see if it would persist or was some weird buggery. No such luck. Any folder I open w/ Atom from iTerm now opens as a new window. How do I get it back to opening it w/ tabs again?
I liked having other projects being opened and being tab-separated in Atom. (And I liked being able to pull them off into their own separate window.)
TIA
Try this: In OSX, go to System Preferences -> Dock
, and if the option is set to In full screen only
trying changing it to Manually
, or Always
. Setting it to "Always" worked for me.
See https://github.com/atom/atom/issues/12690#issuecomment-246930784
I think you currently have two options depending whether you want to add an entire folder (project) to the currently open atom window, or a just a single file.
If you want to open an entire new project in the same atom window, you can add it with:
atom -a ../new-project
It will then be visible in the sidebar and new files you open from it will open in new tabs.
If you want to open a single file in a new tab in the same window, you can use:
atom -n false ../new-project/single_file.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With