summaryrefslogtreecommitdiff
path: root/completions/feh
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/feh
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/feh')
-rw-r--r--completions/feh10
1 files changed, 6 insertions, 4 deletions
diff --git a/completions/feh b/completions/feh
index e53ca2b1..1cd75420 100644
--- a/completions/feh
+++ b/completions/feh
@@ -52,8 +52,8 @@ _feh()
return
;;
-S|--sort)
- COMPREPLY=( $( compgen -W 'name filename width height pixels size
- format' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'name filename mtime width height
+ pixels size format' -- "$cur" ) )
return
;;
-R|--reload|-H|--limit-height|-W|--limit-width|-E|--thumb-height|\
@@ -100,6 +100,7 @@ _feh()
$split && return
if [[ "$cur" == -* ]]; then
+ # Some versions of feh just output "See 'man feh'" for --help :(
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
[[ $COMPREPLY ]] && return
@@ -108,6 +109,7 @@ _feh()
# 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: filetype=sh