SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

Useless cmd window opened with the viewer #1573

Closed ErtaiBlue closed 1 year ago

ErtaiBlue commented 1 year ago

System: Windows 10, SumatraPDF Whenever i build the file, a cmd window called {the path to my sumatrapdf executable} is opened alongside sumatrapdf. This is not a major issue, it's just annoying to have. Is there not a way of launching the viewer silently? Or if we have to launch a cmd window, could it be launched as a newtab in the Windows Terminal so i gets out of my way? Edit: interestingly enough, if i beforehand launch sumatrapdf as a background process with & , building the tex file does not create a new cmd window. So, would having the command that launches sumatrapdf launch it as a background process fix this? If so, how to modify the command in the user settings?

ErtaiBlue commented 1 year ago

I found a solution to my problem, however, this does involve changing a latextools configuration file (and they recommend in the docs to only use the user settings file instead). It is a very minor change tho, see for yourself. Hit Tools --> Command Palet. Type view package, then open LaTeXTools/viewers/sumatra_viewer.py Line 102, change show_window to False.