* PATCH: match uppercase file extensions for zathura
@ 2018-10-16 23:07 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2018-10-16 23:07 UTC (permalink / raw)
To: Zsh workers
Unlike _pspdf, zathura's completion is matching only lowercase file
extensions. I happened to get a file in an e-mail where the extension
was uppercase - .PDF. So this changes the completion to handle that.
Oliver
diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura
index 615488068..ebd229909 100644
--- a/Completion/X/Command/_zathura
+++ b/Completion/X/Command/_zathura
@@ -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 \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-16 23:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 23:07 PATCH: match uppercase file extensions for zathura Oliver Kiddle
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).