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 -2
View File
@@ -391,6 +391,8 @@ func completeCmd(acc []rune) (matches []compMatch, result string) {
break
}
switch f[1] {
case "cleaner", "previewer":
matches, result = matchCmdFile(f[2], false)
case "filtermethod", "searchmethod":
matches, result = matchWord(f[2], []string{"glob", "regex", "text"})
case "info":
@@ -403,8 +405,6 @@ func completeCmd(acc []rune) (matches []compMatch, result string) {
matches, result = matchWord(f[2], []string{"binary", "decimal"})
case "sortby":
matches, result = matchWord(f[2], []string{"atime", "btime", "ctime", "custom", "ext", "name", "natural", "size", "time"})
case "cleaner", "previewer":
matches, result = matchCmdFile(f[2], false)
default:
if slices.Contains(gOptWords, f[1]+"!") {
matches, result = matchWord(f[2], []string{"false", "true"})