Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: match uppercase file extensions for zathura
- X-seq: zsh-workers 43697
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: match uppercase file extensions for zathura
- Date: Wed, 17 Oct 2018 01:07:05 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1539731231; bh=K0NG+s8lDDfgW5xusgyqL0hPCmyxn4oWNUsnl8ZRp4w=; h=From:To:Subject:Date:From:Subject; b=oa5vz10l3Z/X9bRHqclyMy4qiHOtZHH2DtvH6Pv+MmdUPEJMCcRdw5rAVoIGETGp98fd8diFO5mLLFmUxkjip0RWWS2NMrRK6WNUn3cRXeLf3W3wYrsj4YO2+Wp6RDmj4WbSnjuP/8Scksw7BYPp3/I6cgaP8YlQNN8N8upwooJPaFORxwWlPplaRfaxqaEE7jsMMt3pEYt2BuiGxp42HCcNvVS9Md8CTgoH8wOO8L0oa/G6BQi0bd3gVFGBpSzSxdvpxMeNlfiYv8aKepRgvck4Lx4URvEVfPydzJ+X/bbHGc/M1UUhajdWuZQHF2Q+EekHBeWU7/2lziu2G85fcQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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 \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author