From 63574c8f14fb813bea08e59e43a170ff0f4cf592 Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Sun, 8 Apr 2012 17:19:53 +0400 Subject: [PATCH] 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. --- completions/fbi | 2 +- completions/feh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/completions/fbi b/completions/fbi index 9516247b..5073607a 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 4a4f607b..5d66bb10 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