Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atom setting to open files in the same window?

I'm just trying out Atom for the first time and I find it bothersome that Atom keeps opening a new window for each file I click on - I'd prefer that it defaulted to opening each file in the same window.

I'm hoping for something along the lines of "open_files_in_new_window" : false, in Sublime. Unfortunately, all the google results I'm seeing just lament that this toggle is not immediately obvious.

like image 284
doub1ejack Avatar asked Feb 15 '16 20:02

doub1ejack


2 Answers

In your terminal you can type atom -a <filename||folder> and the file(s) will open within the same atom window.

like image 68
Samantha Bretous Avatar answered Oct 06 '22 13:10

Samantha Bretous


Per the atom -h command, one should open files with -n=false or --new-window=false argument passed so that they are opened in an existing window, e.g.

atom -n=false ~/Desktop/test.py

One could make atom -n=false an alias of atom in the ~/.bashrc or ~/.zshrc file, or one could edit the corresponding file in /home/<your username>/.local/share/applications so that the command it invokes is, for instance, /usr/lib/atom/atom -n=false %F.

like image 44
Gallifreyan Avatar answered Oct 06 '22 13:10

Gallifreyan