How to open a file from the terminal using Atom

I have just installed Atom on my machine (adding its install directory to PATH), and I have also installed the language-latex package with apm. Now I would like to be able to open a file from the terminal with Atom (specifically through Windows Powershell). I had a file called Summa.tex sitting on my desktop, I have already written on it using notepad++; so I navigated into my Desktop folder and I typed into the terminal: atom Summa.tex like I would have done with any other text editor from gedit to notepad++. But with this command Atom, for some reason, does not open the file Summa.tex, instead it opens a blank file, also named Summa.tex. How can I get Atom to open my file through a terminal comand?

There is also another correlated strange behaviour: if I try to create a new file in Atom through the command atom new_file_name.tex it does not create the file in the location in witch the terminal is open, instead it seems to create the file somewhere else. I really dislike this behaviour, I would like it to work like any other text editor in this regard.

What is going on? How can I modify this behaviour?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like