What's the API method to open/close a file from the console?


#1

What’s the API method to open/close a file from the console?


#2

Your can use:

atom.workspace.open('/path/file.ext');

#3

Any way to open the file in the frontmost window when multiple windows exist?