I am trying to open a new view with the currently selected file in Total Commander and are using the -n command line parameter for opening a new view:
“C:\Program Files\Sublime Text\subl.exe” -n “%1”
The %1 is replaced with the currently selected file and this works fine. However when I call this command sublime starts up the previous view and then creates a new view with the currently selected file listed. I do not want the old view opened, just the new view.
If I leave the old view opened the command line does not open the old view as it is already opened and the new view is created as before.
How can i change this behaviour to only show a new view when using the -n command line parameter? It should disregard any previous opened view or if indeed there are any previous opened views.
Calling subl.exe with -n opens previous view along side the new view
SoftAllan
#1
0 Likes
bschaaf
#2
Sublime Text by default restores your previously open windows and files by default. You can disable this behavior using the "hot_exit" setting.
0 Likes
