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
@@ -33,6 +33,7 @@ var gOpts struct {
dircache bool
dircounts bool
dironly bool
dirpreviews bool
drawbox bool
globsearch bool
icons bool
@@ -84,6 +85,7 @@ func init() {
gOpts.dircache = true
gOpts.dircounts = false
gOpts.dironly = false
gOpts.dirpreviews = false
gOpts.drawbox = false
gOpts.globsearch = false
gOpts.icons = false