]> Sergey Matveev's repositories - nnn.git/commitdiff
added support webp format (#652)
authorakimdi <akimdi@users.noreply.github.com>
Tue, 16 Jun 2020 13:38:46 +0000 (16:38 +0300)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 13:38:46 +0000 (19:08 +0530)
* added support webp format

* update nuke plugin with support webp format

plugins/imgview
plugins/nuke

index d221f981d856a0aad4d2ac004fdfc185cfaa2d6e..4bbff2df42416526dc8ceeceae307f3b02773070 100755 (executable)
@@ -18,7 +18,7 @@ abspath() {
 
 listimages() {
     find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
-      '.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
+      '.*\(jpe?g\|bmp\|webp\|png\|gif\)$' -print0 | sort -z
 }
 
 view_dir() {
index 30cfe7a9f70ad5268fd1de45d05088a0f9e3479e..2c47ce03ed7bbafd89efacaa050c96d6a7d62bd0 100755 (executable)
@@ -254,7 +254,7 @@ abspath() {
 
 listimages() {
     find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
-      '.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
+      '.*\(jpe?g\|bmp\|webp\|png\|gif\)$' -print0 | sort -z
 }
 
 load_dir() {