Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Feed in the settings file as a command line argument #1027
This way we could use different settings using a shortcut files or using a build system from the preferred text editor depending on the situation.
For example I compile from latex using a build system in my editor. However at nights I use a dark theme on my editor and switching between the screens with different luminosity is literally painful to my eyes. I wish I could just run something like
there are several issues with what you propose since over time the settings file has been extended to include file history etc.
however I guess your best bet is to use windows built-in command editor (edlin.exe from win16bit to Win10x32) or for 32/64 bits the more modern powershell script processor to find and replace those lines of the settings.txt file to your preference
You can place a simple lightweight tool to Find And Replace Text (70 KB for fart199b_win32) in the sumatraPDF directory and would only need alternating shortcuts such as
fart.exe -i SumatraPDF-settings.txt #ffffff #C0ffee & SumatraPDF.exe
in this case if prefixed with cmd /c (and set to minimised) whilst SumatraPDF is kept open on the same file the two shortcuts allow you to toggle the background value on the fly
Alternatively you can run two copies of SumatraPDF in separate directories (e.g installed and portable ?) without a common history
As a result of other forum comments this issue re: selecting a user preferred SumatraPDF-settings.txt file