News for hackers. Stuff that matters.
Re:SumatraPDF Reader by sinuhe69 on Monday October 23, 2023 @09:41PM (#37993982)
I have the bad habit of keeping many PDF files in the reader open (yeah, I keep reading long books). The thing is when I open Sumatra for a new file (maybe only for a quick glance) Sumatra will reload all my files and slowed the startup significantly. I wish I can set the option which will load only if I’ve actually switched to the tab, just like Firefox.
Re:SumatraPDF Reader by generationP on Monday October 23, 2023 @09:57PM (#37994084)
It seems to have a bug where if you load a file from the app using the quick-load 1,2,...,10 keys in the File menu, then the next time you open another file in SumatraPDF from the explorer, it immediately opens several other files. This may be related.
Re:SumatraPDF Reader by hans_castorp on Tuesday October 24, 2023 @01:32AM (#37995115)
This can be controlled when use the "Advanced Options". It opens a config file where you can set:

RememberOpenedFiles = false

https://www.sumatrapdfreader.org/settings/settings3-4-6

Re:SumatraPDF Reader by eviks on Tuesday October 24, 2023 @10:20AM (#37999520)
the files should still be remembered, they should just be lazy loaded
Re:SumatraPDF Reader by sinuhe69 on Tuesday October 24, 2023 @11:55PM (#38008961)
Thank to your suggestion, I figured out a workaround:

- RememberOpenedFiles = true

- RememberSettingForEachFile = true

- RestoreSession = false

So Sumatra will open the new file without the ballast of the past. But if you click on an old file, it will open and go to the last position for you to continue. Right now one can not change the number of recent files list, nor can one replace the frequent access list with recent list, but I can live with that. Hopefully somebody could make these options.

Re:SumatraPDF Reader by buchoo on Tuesday October 24, 2023 @06:54AM (#37997221)
The same frustration due to the same bad habit led me to look into implementing lazy loading in SumatraPDF, but unfortunately the code is structured in such a way as to make it a very non-trivial change.