]> Sergey Matveev's repositories - nnn.git/commitdiff
sxiv automatically plays animations (part2) (#732)
authorToni Jarjour <39845673+tonijarjour@users.noreply.github.com>
Tue, 15 Sep 2020 02:59:50 +0000 (22:59 -0400)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 02:59:50 +0000 (08:29 +0530)
* sxiv automatically plays animations (part2)

* Update imgview

* Update imgview

plugins/imgview

index a5fafbf5784cec79e013561fb283ca778a971c5e..daa08452d2f3d37623878c28efc1bd74a7396ae9 100755 (executable)
@@ -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