Open Atom Editor from Terminal without restoring windows(MacOS)


To open files in current dir with command

atom .
open -a atom .

Atom opens them with restoring windows.

To open atom fresh, I tried

open -F -a atom .
open -F -n -a atom .

They didn’t work as expected.

How to open files under current dir in app atom without restoring windows.


To clarify: you want to open a file in a directory that is already open in Atom, but you want to open a new window for it? Is there a particular reason why you want two windows for files in the same folder?


No, I want to open Atom clean listing files in a dir without files already open.