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:
1 parent
4968b1da42
commit
479ed924f7
7 files changed
+129
-4
No files matched your search
@@ -118,6 +118,7 @@ The following options can be used to customize the behavior of lf:
|
||||
dircounts bool (default off)
|
||||
dirfirst bool (default on)
|
||||
dironly bool (default off)
|
||||
dirpreviews bool (default off)
|
||||
drawbox bool (default off)
|
||||
errorfmt string (default "\033[7;31;47m%s\033[0m")
|
||||
filesep string (default "\n")
|
||||
@@ -597,6 +598,10 @@ Show directories first above regular files.
|
||||
|
||||
dironly bool (default off)
|
||||
|
||||
If enabled, directories will also be passed to the previewer script. This allows custom previews for directories.
|
||||
|
||||
dirpreviews bool (default off)
|
||||
|
||||
Show only directories.
|
||||
|
||||
drawbox bool (default off)
|
||||
|
||||
Reference in new issue
Block a user