How to open a new file in a another tab instead of a new window in Atom editor?












1














I have already an atom editor window open in my Linux and I try running the atom from the terminal to open another file:



atom /path/to/new_file.txt


Every time atom tries to open a new window, when opening a new file instead of opening a new tab in the currently open atom editor. Is there is a way to tell atom (via a config or something) not open a new window if there is an atom window already open?










share|improve this question



























    1














    I have already an atom editor window open in my Linux and I try running the atom from the terminal to open another file:



    atom /path/to/new_file.txt


    Every time atom tries to open a new window, when opening a new file instead of opening a new tab in the currently open atom editor. Is there is a way to tell atom (via a config or something) not open a new window if there is an atom window already open?










    share|improve this question

























      1












      1








      1







      I have already an atom editor window open in my Linux and I try running the atom from the terminal to open another file:



      atom /path/to/new_file.txt


      Every time atom tries to open a new window, when opening a new file instead of opening a new tab in the currently open atom editor. Is there is a way to tell atom (via a config or something) not open a new window if there is an atom window already open?










      share|improve this question













      I have already an atom editor window open in my Linux and I try running the atom from the terminal to open another file:



      atom /path/to/new_file.txt


      Every time atom tries to open a new window, when opening a new file instead of opening a new tab in the currently open atom editor. Is there is a way to tell atom (via a config or something) not open a new window if there is an atom window already open?







      linux atom-editor






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      motam79

      1869




      1869






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Is there is a way to tell atom (via a config or something) not open a new window?



          atom -n false /path/to/new_file.txt


          Where:



          -n, --new-window Open a new window. [boolean]


          Source Open file/project from terminal / command line - features - Atom Discussion:



          atom --help
          Atom Editor v0.80.0

          Usage: atom [options] [file …]

          Options:
          -d, --dev Run in development mode. [boolean]
          -f, --foreground Keep the browser process in the foreground. [boolean]
          -h, --help Print this usage message. [boolean]
          -l, --log-file Log all output to file. [string]
          -n, --new-window Open a new window. [boolean]
          -s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
          -t, --test Run the specified specs and exit with error code on failures. [boolean]
          -v, --version Print the version. [boolean]
          -w, --wait Wait for window to be closed before returning. [boolean]




          Does atom have rc file or global config so I can set this option as default there?




          Atom loads configuration settings from the config.cson file in your %USERPROFILE%.atom directory.




          However the --new-window option is not one of the configurable options.



          Source Basic Customization






          share|improve this answer























          • Thanks. Does atom have rc file or global config so I can set this option as default there?
            – motam79
            4 hours ago










          • @motam79 Answer updated.
            – DavidPostill
            4 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389397%2fhow-to-open-a-new-file-in-a-another-tab-instead-of-a-new-window-in-atom-editor%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Is there is a way to tell atom (via a config or something) not open a new window?



          atom -n false /path/to/new_file.txt


          Where:



          -n, --new-window Open a new window. [boolean]


          Source Open file/project from terminal / command line - features - Atom Discussion:



          atom --help
          Atom Editor v0.80.0

          Usage: atom [options] [file …]

          Options:
          -d, --dev Run in development mode. [boolean]
          -f, --foreground Keep the browser process in the foreground. [boolean]
          -h, --help Print this usage message. [boolean]
          -l, --log-file Log all output to file. [string]
          -n, --new-window Open a new window. [boolean]
          -s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
          -t, --test Run the specified specs and exit with error code on failures. [boolean]
          -v, --version Print the version. [boolean]
          -w, --wait Wait for window to be closed before returning. [boolean]




          Does atom have rc file or global config so I can set this option as default there?




          Atom loads configuration settings from the config.cson file in your %USERPROFILE%.atom directory.




          However the --new-window option is not one of the configurable options.



          Source Basic Customization






          share|improve this answer























          • Thanks. Does atom have rc file or global config so I can set this option as default there?
            – motam79
            4 hours ago










          • @motam79 Answer updated.
            – DavidPostill
            4 hours ago
















          2














          Is there is a way to tell atom (via a config or something) not open a new window?



          atom -n false /path/to/new_file.txt


          Where:



          -n, --new-window Open a new window. [boolean]


          Source Open file/project from terminal / command line - features - Atom Discussion:



          atom --help
          Atom Editor v0.80.0

          Usage: atom [options] [file …]

          Options:
          -d, --dev Run in development mode. [boolean]
          -f, --foreground Keep the browser process in the foreground. [boolean]
          -h, --help Print this usage message. [boolean]
          -l, --log-file Log all output to file. [string]
          -n, --new-window Open a new window. [boolean]
          -s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
          -t, --test Run the specified specs and exit with error code on failures. [boolean]
          -v, --version Print the version. [boolean]
          -w, --wait Wait for window to be closed before returning. [boolean]




          Does atom have rc file or global config so I can set this option as default there?




          Atom loads configuration settings from the config.cson file in your %USERPROFILE%.atom directory.




          However the --new-window option is not one of the configurable options.



          Source Basic Customization






          share|improve this answer























          • Thanks. Does atom have rc file or global config so I can set this option as default there?
            – motam79
            4 hours ago










          • @motam79 Answer updated.
            – DavidPostill
            4 hours ago














          2












          2








          2






          Is there is a way to tell atom (via a config or something) not open a new window?



          atom -n false /path/to/new_file.txt


          Where:



          -n, --new-window Open a new window. [boolean]


          Source Open file/project from terminal / command line - features - Atom Discussion:



          atom --help
          Atom Editor v0.80.0

          Usage: atom [options] [file …]

          Options:
          -d, --dev Run in development mode. [boolean]
          -f, --foreground Keep the browser process in the foreground. [boolean]
          -h, --help Print this usage message. [boolean]
          -l, --log-file Log all output to file. [string]
          -n, --new-window Open a new window. [boolean]
          -s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
          -t, --test Run the specified specs and exit with error code on failures. [boolean]
          -v, --version Print the version. [boolean]
          -w, --wait Wait for window to be closed before returning. [boolean]




          Does atom have rc file or global config so I can set this option as default there?




          Atom loads configuration settings from the config.cson file in your %USERPROFILE%.atom directory.




          However the --new-window option is not one of the configurable options.



          Source Basic Customization






          share|improve this answer














          Is there is a way to tell atom (via a config or something) not open a new window?



          atom -n false /path/to/new_file.txt


          Where:



          -n, --new-window Open a new window. [boolean]


          Source Open file/project from terminal / command line - features - Atom Discussion:



          atom --help
          Atom Editor v0.80.0

          Usage: atom [options] [file …]

          Options:
          -d, --dev Run in development mode. [boolean]
          -f, --foreground Keep the browser process in the foreground. [boolean]
          -h, --help Print this usage message. [boolean]
          -l, --log-file Log all output to file. [string]
          -n, --new-window Open a new window. [boolean]
          -s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
          -t, --test Run the specified specs and exit with error code on failures. [boolean]
          -v, --version Print the version. [boolean]
          -w, --wait Wait for window to be closed before returning. [boolean]




          Does atom have rc file or global config so I can set this option as default there?




          Atom loads configuration settings from the config.cson file in your %USERPROFILE%.atom directory.




          However the --new-window option is not one of the configurable options.



          Source Basic Customization







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 4 hours ago

























          answered 4 hours ago









          DavidPostill

          103k25223257




          103k25223257












          • Thanks. Does atom have rc file or global config so I can set this option as default there?
            – motam79
            4 hours ago










          • @motam79 Answer updated.
            – DavidPostill
            4 hours ago


















          • Thanks. Does atom have rc file or global config so I can set this option as default there?
            – motam79
            4 hours ago










          • @motam79 Answer updated.
            – DavidPostill
            4 hours ago
















          Thanks. Does atom have rc file or global config so I can set this option as default there?
          – motam79
          4 hours ago




          Thanks. Does atom have rc file or global config so I can set this option as default there?
          – motam79
          4 hours ago












          @motam79 Answer updated.
          – DavidPostill
          4 hours ago




          @motam79 Answer updated.
          – DavidPostill
          4 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389397%2fhow-to-open-a-new-file-in-a-another-tab-instead-of-a-new-window-in-atom-editor%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          What visual should I use to simply compare current year value vs last year in Power BI desktop

          Alexandru Averescu

          Trompette piccolo