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.
[ Parent
| on HN ]
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
the files should still be remembered, they should just be lazy loaded
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.
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.