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:
parent
d2a3db0b7a
commit
63574c8f14
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user