nnn

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

commit b6fd7d928c3a279a514f5cdad285ed55a53a97f3
parent 2f9c700537857591a7bad7d449f611d2caa3af4a
Author: Luuk van Baal <luukvbaal@gmail.com>
Date:   Sun, 30 May 2021 21:33:48 +0200

Add ucollage to imgview

Diffstat:
Mplugins/README.md | 2+-
Mplugins/imgview | 15+++++++++++----
2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/plugins/README.md b/plugins/README.md @@ -36,7 +36,7 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina | [hexview](hexview) | View a file in hex in `$PAGER` | sh | [hx](https://github.com/krpors/hx)/xxd | | [imgresize](imgresize) | Resize images in dir to screen resolution | sh | [imgp](https://github.com/jarun/imgp) | | [imgur](imgur) | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) | bash | - | -| [imgview](imgview) | View (thumbnail)images, set wallpaper, [rename](https://github.com/jarun/nnn/wiki/Basic-use-cases#browse-rename-images) and [more](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts)| sh | [imv](https://github.com/eXeC64/imv)/[sxiv](https://github.com/muennich/sxiv)/[viu](https://github.com/atanunq/viu)/<br>[catimg](https://github.com/posva/catimg)/[lsix](https://github.com/hackerb9/lsix)| +| [imgview](imgview) | View (thumbnail)images, set wallpaper, [rename](https://github.com/jarun/nnn/wiki/Basic-use-cases#browse-rename-images) and [more](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts)| sh | [imv](https://github.com/eXeC64/imv)/[sxiv](https://github.com/muennich/sxiv)/[viu](https://github.com/atanunq/viu)/<br>[ucollage](https://github.com/ckardaris/ucollage)/[catimg](https://github.com/posva/catimg)/[lsix](https://github.com/hackerb9/lsix)| | [ipinfo](ipinfo) | Fetch external IP address and whois information | sh | curl, whois | | [kdeconnect](kdeconnect) | Send selected files to an Android device [✓] | sh | kdeconnect-cli | | [launch](launch) | GUI application launcher | sh | fzf | diff --git a/plugins/imgview b/plugins/imgview @@ -1,16 +1,18 @@ #!/usr/bin/env sh # Description: Open hovered or current directory in image viewer. -# Thumbnails for audio and video files are generated -# and deleted on exit. Supported image viewers open -# in thumbnail mode when the hovered entry is a directory. +# Supported image viewers open in thumbnail mode when +# the hovered entry is a directory. # # Dependencies: # - imv (https://github.com/eXeC64/imv) or, # - sxiv (https://github.com/muennich/sxiv) or, +# - ucollage (https://github.com/ckardaris/ucollage) or, +# - lsix (https://github.com/hackerb9/lsix), or # - viu (https://github.com/atanunq/viu), or # - catimg (https://github.com/posva/catimg), or -# - lsix (https://github.com/hackerb9/lsix) +# - optional: ffmpegthumbnailer for video thumbnails +# - optional: ffmpeg for audio thumbnails (album art) # # Shell: POSIX compliant # Author: Arun Prakash Jana, Luuk van Baal @@ -66,6 +68,11 @@ elif type lsix >/dev/null 2>&1; then lsix nthumb_cleanup exit_prompt +elif type ucollage >/dev/null 2>&1; then + make_thumbs + ucollage + nthumb_cleanup + exit elif type sxiv >/dev/null 2>&1; then make_thumbs if [ -f "$target" ]; then