[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-161-g4710d1b

Igor Murzov e-mail at date.by
Sun Apr 8 14:39:06 UTC 2012


The following commit has been merged in the master branch:
commit 63574c8f14fb813bea08e59e43a170ff0f4cf592
Author: Igor Murzov <e-mail at date.by>
Date:   Sun Apr 8 17:19:53 2012 +0400

    fbi, feh: Complete more supported file formats.
    
    Since release 2.4 feh uses convert(1) from ImageMagick to load files in
    unsupported formats just like fbi does, so add some more extensions to
    the list of supported formats. Also add 'cdr' and 'otf', 'ttf' as these
    formats are discovered to work fine.

diff --git a/completions/fbi b/completions/fbi
index 9516247..5073607 100644
--- a/completions/fbi
+++ b/completions/fbi
@@ -47,7 +47,7 @@ _fbi()
 
     # FIXME: It is hard to determine correct supported extensions.
     # fbi can handle any format that imagemagick can plus some others
-    _filedir 'bmp|gif|jp?(e)g|pcd|png|p[pgb]m|tif?(f)|webp|xpm|xwd|?(e)ps|pdf|dvi|txt|svg?(z)'
+    _filedir 'bmp|gif|jp?(e)g|pcd|png|p[pgb]m|tif?(f)|webp|xpm|xwd|?(e)ps|pdf|dvi|txt|svg?(z)|cdr|[ot]tf'
 } && complete -F _fbi fbi
 
 # ex: ts=4 sw=4 et filetype=sh
diff --git a/completions/feh b/completions/feh
index 4a4f607..5d66bb1 100644
--- a/completions/feh
+++ b/completions/feh
@@ -105,7 +105,9 @@ _feh()
         [[ $COMPREPLY ]] && return
     fi
 
-    _filedir 'xpm|tif?(f)|png|p[npgba]m|iff|?(i)lbm|jp?(e)g|jfi?(f)|gif|bmp|arg?(b)|tga|xcf|ani|ico'
+    # FIXME: It is hard to determine correct supported extensions.
+    # feh can handle any format that imagemagick can plus some others
+    _filedir 'xpm|tif?(f)|png|p[npgba]m|iff|?(i)lbm|jp?(e)g|jfi?(f)|gif|bmp|arg?(b)|tga|xcf|ani|ico|?(e)ps|pdf|dvi|txt|svg?(z)|cdr|[ot]tf'
 } && complete -F _feh feh
 
 # ex: ts=4 sw=4 et filetype=sh

-- 
bash-completion



More information about the Bash-completion-commits mailing list