Pārlūkot izejas kodu

Add plugin to view image and browse image dir

master
Arun Prakash Jana pirms 5 gadiem
vecāks
revīzija
650f92bf34
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
2 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      plugins/README.md
  2. +14
    -0
      plugins/viuimg

+ 1
- 0
plugins/README.md Parādīt failu

@@ -19,6 +19,7 @@
| 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))|
| transfer | sh | curl | Upload current 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 |

#### Installing plugins



+ 14
- 0
plugins/viuimg Parādīt failu

@@ -0,0 +1,14 @@
#!/usr/bin/env sh

# Description: View an image or images in a directory in pager
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana

if ! [ -z "$1" ]; then
if [ -d "$1" ]; then
viu -n "$1"/* 2>/dev/null | less -R
else
viu -n "$1" | less -R
fi
fi

Notiek ielāde…
Atcelt
Saglabāt