Implement directory previews (#842)

* Directory previews, initial implementation.

* Continue previous; add goroutine for directory previews.

* Enable dirpreviews as an option, run gofmt and fix referencing nil.

* Only use dirpreviews if previewer script exists.

* Remove redundant function call to `dirPreview`.

* Remove unnecessary dev-comments.

* Send to `dirPreviewChan` also on modifying folder contents.
This commit is contained in:
Salle Helevä authored and GitHub committed 2022-10-15 15:42:08 +03:00
1 parent 4968b1da42
commit 479ed924f7
7 files changed
+129 -4

No files matched your search

+2
View File
@@ -44,6 +44,8 @@ func (e *setExpr) eval(app *app, args []string) {
app.nav.position()
app.ui.sort()
app.ui.loadFile(app.nav, true)
case "dirpreviews":
gOpts.dirpreviews = true
case "nodironly":
gOpts.dironly = false
app.nav.sort()