The sublime text parameter "-n -w" (for git) always opens my previous tabs

I have a set of commands for my commits in git under windows using git bash:

core.editor='c:\Program Files\Sublime Text 3\subl' -w -n

I would like to enter a commit window in a new separate window. This part works great.

The problem is that whenever I do something and the sumblime window opens, it also opens a second window with all the tabs I'm working on now (unless the hill was already open anyway). When at present no elevated text window opens, and I do something, two windows instead of one open.

How can I prevent the sublime opening of another window (with my previous tabs) too and at the same time when I open the sublime normally (for example, from the taskbar or the Start menu) that all my previously opened tabs will be displayed?

I know that I can set the following parameters:

"hot_exit": false,
"remember_open_files": false

Bu, which will disable remembering open tabs globally, not just for git context.

+4
source share
1 answer

Try using the portable version of Sublime Text as a Git editor.

So, your installed version will remain with your files and Git will not open.

, "" :

c:\Sublime Text 3 Portable\Data\Installed Packages\  -->  c:\Users\user\AppData\Roaming\Sublime Text 3\Installed Packages\
c:\Sublime Text 3 Portable\Data\Packages\            -->  c:\Users\user\AppData\Roaming\Sublime Text 3\Packages\

"", .

+2

All Articles