26 votes
 


I'd like to ask for a couple of flags to be added for command-line use: '--new-instance' and '--no-remembered-files'.


  • --new-instance
    • open a new, separate instance of ST2 which used and closed with "File / Exit" without affecting any other ST2 instance
  • --no-remembered-files
    • open instance of ST2 which does not open _or save_ any remembered files


In combination, theses flags would allow better use of ST2 as the editor for various other programs (GIT, HG, etc).


Currently, I do use ST2 as the editor for GIT and HG, and I can obtain almost correct behavior for merging, editing commits, etc, by using:

sublime_text.exe --wait --new-window %S

This works, as I said, almost correctly. When I close the resultant window, control returns to the command line as it should unless I have ST2 already running and ("remember_open_files": true). If that's the case, then I must close the other program window (using either "File / Exit" or a second "File / Close Window" on the other open window) to get return of control to the command line.


It would be easier and much more consistent if I could open a new separate instance which doesn't open/save remembered files and which is always closed with "File / Exit". This would be my preferred syntax:

sublime_text.exe --wait --new-instance --no-remembered-files %S

Thanks for your attention.

 
0
Roy Ivy III


Small correction, the above post should read:


"...unless I don't have ST2 already running and have ("remember_open_files": true)."

Translation provided by Microsoft translator:

 
0
Ethan Brown

I agree that this is also super-important.


I would love to use Sublime as my commit msg editor, but at the moment, even when using --multiinstance I get a new window with all the tabs from the other instance.  Then those all have to be closed out before I can get back to the cmd line.

Translation provided by Microsoft translator:

 
0
nick vajberg

This is the only feature holding me back from purchasing ST, i too want it as the commit editor.

Translation provided by Microsoft translator:

 
0
Alfonso Commer

I really like ST2 as my main editor too and try to work with gnome3 and its paradigms to create a new instance of the application, ends being too bothering. Hope this post gets some more attention, it's almost a year old!

Translation provided by Microsoft translator:

Community stats

  • 26,704People
  • 3,762Feedback
  • 5,616Comments
  • 63,199Votes