1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

43697: match uppercase filename extensions in zathura completion

This commit is contained in:
Oliver Kiddle 2018-10-17 17:57:58 +02:00
parent 8c57505314
commit ef58491092
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2018-10-17 Oliver Kiddle <okiddle@yahoo.co.uk>
* 43697: Completion/X/Command/_zathura: match uppercase
filename extensions
* 43698: Completion/Unix/Command/_git: update options for 2.19
2018-10-16 Daniel Shahaf <d.s@daniel.shahaf.name>

View file

@ -11,7 +11,7 @@ _zathura_files(){
plugins_files+=( $plugins_dir/*.so(N) )
done
if [[ -z "${plugins_files}" ]]; then
_files -g "*.pdf(-.)"
_files -g "(#i)*.pdf(-.)"
return
fi
local -a supported_filetypes
@ -27,7 +27,7 @@ _zathura_files(){
supported_filetypes+="${pf:t:r}"
fi
done
_files -g "*.(${(j.|.)${(@u)supported_filetypes}})(-.)"
_files -g "(#i)*.(${(j.|.)${(@u)supported_filetypes}})(-.)"
}
_arguments -s -S \