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.
This commit is contained in:
Igor Murzov 2012-04-08 17:19:53 +04:00
parent d2a3db0b7a
commit 63574c8f14
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ _fbi()
# FIXME: It is hard to determine correct supported extensions. # FIXME: It is hard to determine correct supported extensions.
# fbi can handle any format that imagemagick can plus some others # 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 } && complete -F _fbi fbi
# ex: ts=4 sw=4 et filetype=sh # ex: ts=4 sw=4 et filetype=sh

View File

@ -105,7 +105,9 @@ _feh()
[[ $COMPREPLY ]] && return [[ $COMPREPLY ]] && return
fi 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 } && complete -F _feh feh
# ex: ts=4 sw=4 et filetype=sh # ex: ts=4 sw=4 et filetype=sh