README.md | 2 +- plugins/README.md | 1 + plugins/thumb | 17 +++++++++++++++++ diff --git a/README.md b/README.md index c98c1d787c6e0b1e27054cbf8368ea457cebf694..23ed3b0fa8ac4ac98069c40c7ec051479ae8707e 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ | `$VISUAL` (else `$EDITOR`), `$PAGER`, `$SHELL` | optional | fallback vi, less, sh | #### From a package manager -Find a list of known packagers [here](https://github.com/jarun/nnn/wiki/packagers). +There's a good chance `nnn` is already available in the default repos of your distro. Find a list of known packagers [here](https://github.com/jarun/nnn/wiki/packagers). #### Release packages diff --git a/plugins/README.md b/plugins/README.md index 084ac2bf877b1abefee07d27011c6827432c43bb..10b7830a46872d5950baced7d4899ebbdb14a9f2 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -26,6 +26,7 @@ | readit | sh | pdftotext, mpv,
pico2wave | Read a PDF or text file aloud | | ringtone | sh | date, ffmpeg | Create a variable bitrate mp3 ringtone from file | | splitjoin | sh | split, cat | Split file or join selection | | sxiv | sh | sxiv | Browse images in a dir in sxiv, set wallpaper, copy path ([config](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts))| +| thumb | sh | [lsix](https://github.com/hackerb9/lsix) | View thumbnail of an image or dir of images | | transfer | sh | curl | Upload file to transfer.sh | | upgrade | sh | wget | Upgrade to latest nnn version manually on Debian 9 Stretch | | viuimg | sh | [viu](https://github.com/atanunq/viu), less | View an image or images in a directory | diff --git a/plugins/thumb b/plugins/thumb new file mode 100755 index 0000000000000000000000000000000000000000..10bb6511b258033b5b16932b987efc084de684bb --- /dev/null +++ b/plugins/thumb @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +# Description: View thumbnail of an image or a directory of images with lsix +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ]; then + if [ -d "$1" ]; then + lsix "$1"/* + else + lsix "$1" + fi + + echo -n "Press any key to exit..." + read dummy +fi