nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d85c23c433cd5ff07fc5a1d5210d1d63a608a572
parent 251843fe65189b7ac56f0bea208e7a03d92b2c81
Author: Daniel Bretoi <daniel@otherware.org>
Date:   Thu, 12 Sep 2024 22:15:18 -0700

Update preview-tui

make NNN_PREVIEWIMGPROG flexible enough to accept any program. programs like `timg` would also work (my preference), but it seems odd to add every single program out there when it's easy to add new ones by just this one variable
Diffstat:
Mplugins/preview-tui | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -460,6 +460,8 @@ image_preview() { chafa "$3" & elif exists img2sixel && [[ "$NNN_PREVIEWIMGPROG" == +(|img2sixel) ]]; then img2sixel -g "$3" & + elif exists "$NNN_PREVIEWIMGPROG"; then + "$NNN_PREVIEWIMGPROG" "$3" & else fifo_pager print_bin_info "$3" && return fi