aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Toni Jarjour <39845673+tonijarjour@users.noreply.github.com>2020-09-14 22:59:50 -0400
committerGravatar GitHub <noreply@github.com>2020-09-15 08:29:50 +0530
commit240c0e5fedd35c8aa17d379b510e1345ea024a23 (patch)
treea7d0a784fda9197e853159da09a11209c6131ea8
parent1912cee95787d56d620c6fd3ebf1fe3c9c530c36 (diff)
downloadnnn-240c0e5fedd35c8aa17d379b510e1345ea024a23.tar.gz
sxiv automatically plays animations (part2) (#732)
* sxiv automatically plays animations (part2) * Update imgview * Update imgview
-rwxr-xr-xplugins/imgview6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/imgview b/plugins/imgview
index a5fafbf..daa0845 100755
--- a/plugins/imgview
+++ b/plugins/imgview
@@ -26,7 +26,11 @@ view_dir() {
count="$(listimages | grep -a -m 1 -ZznF "$target" | cut -d: -f1)"
if [ -n "$count" ]; then
- listimages | xargs -0 "$1" -n "$count" --
+ if [ "$1" = 'sxiv' ]; then
+ listimages | xargs -0 "$1" -an "$count" --
+ else
+ listimages | xargs -0 "$1" -n "$count" --
+ fi
else
shift
"$1" -- "$@" # fallback