Can I close a specific tab from the command line?


#1

Is there an atom command I can execute in my terminal to close a specific tab? For example, if I have one window with two tabs, the first file1 and the second file2, can I do:

$ atom --close-tab file1

Discuss.atom.io says that this question is similar to the below topics. I read them, and only the first is relevant, but the code given is not a command line command. The second is about deleting an unsaved file tab from Atom’s cache before launching the program.

  1. How do you close a tab from code?
  2. Close specific tab before opening Atom