mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
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
This commit is contained in:
parent
251843fe65
commit
d85c23c433
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue