zsh-workers
 help / color / mirror / code / Atom feed
* zathura conpletion for zsh broken
@ 2018-09-25 15:14 Oliver Freyermuth
  2018-09-25 19:21 ` Daniel Shahaf
  0 siblings, 1 reply; 11+ messages in thread
From: Oliver Freyermuth @ 2018-09-25 15:14 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi,

the zathura completion which was recently added breaks for me. I have:
-----------------------------
$ ls -1 /usr/lib/zathura/*
/usr/lib/zathura/cb.so
/usr/lib/zathura/djvu.so
/usr/lib/zathura/pdf.so
/usr/lib/zathura/ps.so
-----------------------------
The completion code fails to strip the plugin_path correctly in case the plugin is neither called poppler nor mupdf. 
The attached patch fixes the situation for me. 

I am not subscribed to list, please include me in replies. 

Cheers,
	Oliver

[-- Attachment #2: 0001-Fix-zathura-completion-supported_filetypes.patch --]
[-- Type: text/x-patch, Size: 816 bytes --]

From 5959af248d0574f27612485f43b8064247cb7b6e Mon Sep 17 00:00:00 2001
From: Oliver Freyermuth <o.freyermuth@googlemail.com>
Date: Tue, 25 Sep 2018 17:08:14 +0200
Subject: [PATCH] Fix zathura completion supported_filetypes.

---
 Completion/X/Command/_zathura | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura
index 141cadf63..cc07828b3 100644
--- a/Completion/X/Command/_zathura
+++ b/Completion/X/Command/_zathura
@@ -25,7 +25,7 @@ _zathura_files(){
     elif [[ $pf =~ "poppler" ]]; then
       supported_filetypes+="pdf"
     else
-      supported_filetypes+="${${pf%.so}#${plugins_dir}/lib}"
+      supported_filetypes+="${${pf%.so}#${plugins_dir}/}"
     fi
   done
   _files -g "*.(${(j.|.)supported_filetypes})(-.)"
-- 
2.16.4


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-09-27 19:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 15:14 zathura conpletion for zsh broken Oliver Freyermuth
2018-09-25 19:21 ` Daniel Shahaf
2018-09-25 20:02   ` Oliver Freyermuth
2018-09-25 20:36     ` Daniel Shahaf
2018-09-25 21:22       ` Oliver Freyermuth
2018-09-25 22:56         ` Daniel Shahaf
2018-09-26  2:22           ` Oliver Freyermuth
2018-09-26 21:08     ` Leah Neukirchen
2018-09-27 18:20       ` Daniel Shahaf
2018-09-27 18:31         ` Bart Schaefer
2018-09-27 19:16           ` Daniel Shahaf

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).