lf
lf copied to clipboard
Implement directory previews
Implementation for #701.
Added option dirpreviews. When enabled, the selected directory is passed to previewer script.
Implementation essentially just adds another channel for directory previews dirPreviewChan and a corresponding goroutine dirPreviewLoop which work in the same manner as preview functionality for regular files.
(BTW: my first PR here, love the project so wanted to contribute with this as it seemed like a gentle introduction to the codebase)