Add option for preloading file previews (#2206)

* Initial commit

* Add documentation

* Fix nav volatile preview state

* Use `previewer` for both preloading and previewing

* Generate documentation

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2025-10-24 13:26:34 +11:00
1 parent 56fd6c27ba
commit d8a23be926
9 files changed
+226 -131

No files matched your search

+2
View File
@@ -82,6 +82,7 @@ var gOpts struct {
number bool
numberfmt string
period int
preload bool
preserve []string
preview bool
previewer string
@@ -243,6 +244,7 @@ func init() {
gOpts.number = false
gOpts.numberfmt = "\033[33m"
gOpts.period = 0
gOpts.preload = false
gOpts.preserve = []string{"mode"}
gOpts.preview = true
gOpts.previewer = ""