New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"subl -n -w foo" start two windows instead of the single one I want #28
Comments
I think this issue is more about ST's default bhaviour when run from the command line with Plus, when ST has been started with |
Image/video from the #617 duplicate: |
An option to explicitly not repoen files might be useful, but it should be unnecessary in some contexts. For example, open a directory e.g. current directory |
Sublime Text needs to always restore the previous session as it may contain unsaved files. Having |
It was suggested to add a different operation mode where the session was explicitly not restored for cases where you just want ST as a quick editor for some file opened via the command line (or some other mechanism). As it stands right now, this can be achieved by keeping a portable instance around with |
(Note: this bug also applies to ST2)
If ST3 is not running, the command:
will start two windows - one with the "foobar" file opened in a new window (as desired and specified by the command line options) and one with the previous set of files that were opened when ST3 was last running.
This is with a fresh, new installation of ST3 build 3030, on a Linux Ubuntu 12.04 LTS box that has never had ST installed on it - so whatever preferences are set by default are in effect.
My intentions are to use the "-n -w" options in a script so I can get normal behavior when ST is specified in the EDITOR environment variable so that git or subversion (or whatever) can invoke ST3 as the 'system editor'.
(similar behavior occurs if the -w option is omitted).
This problem is discussed in the ST forum at http://www.sublimetext.com/forum/viewtopic.php?f=2&t=11293
The text was updated successfully, but these errors were encountered: