How to open a new file in a another tab instead of a new window in Atom editor?
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
add a comment |
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
add a comment |
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
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
linux atom-editor
asked 7 hours ago
motam79
1869
1869
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
add a comment |
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
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
add a comment |
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
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
edited 7 hours ago
answered 7 hours ago
DavidPostill♦
103k25223257
103k25223257
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
add a comment |
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
Thanks. Does atom have rc file or global config so I can set this option as default there?
– motam79
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
@motam79 Answer updated.
– DavidPostill♦
7 hours ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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