diff options
Diffstat (limited to 'completions/feh')
-rw-r--r-- | completions/feh | 10 |
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 |