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












2















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



























    2















    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

























      2












      2








      2








      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 Dec 31 '18 at 22:34









      motam79motam79

      1939




      1939






















          1 Answer
          1






          active

          oldest

          votes


















          3














          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
            Dec 31 '18 at 22:47











          • @motam79 Answer updated.

            – DavidPostill
            Dec 31 '18 at 22:51











          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









          3














          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
            Dec 31 '18 at 22:47











          • @motam79 Answer updated.

            – DavidPostill
            Dec 31 '18 at 22:51
















          3














          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
            Dec 31 '18 at 22:47











          • @motam79 Answer updated.

            – DavidPostill
            Dec 31 '18 at 22:51














          3












          3








          3







          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 Dec 31 '18 at 22:50

























          answered Dec 31 '18 at 22:40









          DavidPostillDavidPostill

          105k25227260




          105k25227260













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

            – motam79
            Dec 31 '18 at 22:47











          • @motam79 Answer updated.

            – DavidPostill
            Dec 31 '18 at 22:51



















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

            – motam79
            Dec 31 '18 at 22:47











          • @motam79 Answer updated.

            – DavidPostill
            Dec 31 '18 at 22:51

















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

          – motam79
          Dec 31 '18 at 22:47





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

          – motam79
          Dec 31 '18 at 22:47













          @motam79 Answer updated.

          – DavidPostill
          Dec 31 '18 at 22:51





          @motam79 Answer updated.

          – DavidPostill
          Dec 31 '18 at 22:51


















          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.




          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

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents